joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038127
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add ch, byte [eax]
add byte [eax], al
inc eax
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x10038177
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x1003817c
jmp 0x10037acf
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x100381c3
lea eax, [ebp - 0x714]
push eax
call fcn.1003613d
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.100360f2
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x100381ce
jmp 0x100381d3
jmp 0x10037acf
cmp dword [ebp - 0x37c], 0
jne 0x1003827d
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10036309
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x10038269
lea eax, [ebp - 0x714]
push eax
call fcn.1003613d
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.100361d2
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003b5a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x1005cee8
call fcn.10057b82
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001a056
and dword [ebp - 4], 0
lea ebx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x1003b5c9
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmp edi, 3
jb 0x1003b627
mov esi, ebx
lea eax, [edi - 2]
xor ecx, ecx
lea eax, [ebx + eax*2]
inc ecx
sub eax, esi
sar eax, 1
push 0
pop edx
je 0x1003b5fc
jmp 0x1003b5ef
cmp eax, ecx
je 0x1003b5fc
dec eax
add esi, 2
push 0x3a
pop edi
cmp word [esi], di
mov edi, dword [ebp - 0x18]
jne 0x1003b5e7
mov edx, esi
mov esi, edx
test esi, esi
je 0x1003b627
push 3
mov edx, 0x10007bac
mov ecx, esi
call fcn.1003ab80
test eax, eax
je 0x1003b619
add esi, 2
jmp 0x1003b5d3
sub esi, ebx
sar esi, 1
cmp esi, 0xffffffff
je 0x1003b627
xor ebx, ebx
inc ebx
jmp 0x1003b679
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x1003b633
mov eax, dword [ebp - 0x28]
cmp word [eax + edi*2 - 2], 0x5c
jne 0x1003b653
cmp dword [ebp - 0x14], 8
lea ecx, [edi - 1]
lea eax, [ebp - 0x28]
jb 0x1003b64a
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov word [eax + ecx*2], dx
push 0x10007bb4
lea ecx, [ebp - 0x28]
call fcn.10025a09
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x1003b66c
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea ecx, [ebp - 0x28]
call fcn.10019ecf
mov al, bl
call fcn.10057b1f
ret

Function at 0x1003d820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003d879
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1003d879
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1003d86a
cmp esi, ecx
jae 0x1003d879
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1003d858
cmp esi, ecx
jae 0x1003d879
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x1003d87b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10043c22
Capabilities:
Get system information on windows

Disassembly:
push 0x2c
mov eax, 0x1005dceb
call fcn.10057b49
mov edi, ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolCleanupGroup]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolCleanupGroup]
xor ebx, ebx
mov dword [edi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThreadpool]
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThreadpool]
lea ecx, [edi + 0x60]
mov dword [edi + 0xc], eax
call fcn.1001a09b
lea eax, [edi + 0x9c]
mov dword [ebp - 4], ebx
push eax
mov byte [edi + 0x98], 1
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea esi, [edi + 0xa0]
mov dword [ebp - 0x14], esi
fldz
fstp dword [esi]
push 0x14
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10056b25
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov byte [ebp - 4], 2
fld1
fstp dword [esi]
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
push dword [esi + 4]
push 0x10
call fcn.1000b802
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov esi, dword [ebp - 0x24]
lea eax, [esi + esi]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMaximum]
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMinimum]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x10], 3
mov dword [edi + 0x30], 1
push 0x28
pop ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x2c], 1
mov eax, dword [edi]
and dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
mov eax, dword [edi + 8]
mov dword [edi + 0x14], eax
mov eax, esi
shl eax, 2
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMaximum]
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMinimum]
xor eax, eax
mov dword [edi + 0x38], 3
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], 1
mov dword [edi + 0x5c], ebx
mov eax, dword [edi + 4]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0x3c], eax
mov eax, edi
call fcn.10057b05
ret 4
Function at 0x10043ef1
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
push edi
xor esi, esi
lea eax, [ebx + 0x9c]
mov dword [ebp - 0xc], esi
push eax
mov edi, esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov edx, 0x811c9dc5
mov ecx, esi
movzx eax, byte [ebp + ecx - 4]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x10043f1f
push edx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0xa0]
call fcn.1000c7cf
mov eax, dword [eax + 4]
test eax, eax
jne 0x10043f53
mov eax, dword [ebx + 0xa4]
cmp eax, dword [ebx + 0xa4]
je 0x10043f7f
add eax, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.1000e0f2
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [eax], esi
mov dword [eax + 4], esi
mov esi, ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10043f7f
call fcn.1000d02a
lea ecx, [ebp - 0x10]
call fcn.1000e541
test edi, edi
je 0x10043f95
push 0xffffffffffffffff
lea ecx, [edi + 4]
call fcn.100124c6
test esi, esi
je 0x10043fa0
mov ecx, esi
call fcn.1000d02a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100442cc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push 0x14
mov eax, 0x1005dde8
call fcn.10057b49
mov dword [ebp - 0x10], edx
mov ebx, ecx
lea eax, [ebx + 0x9c]
mov dword [ebp - 0x14], 1
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
xor edx, edx
lea edi, [ebx + 0xa0]
mov dword [ebp - 4], edx
mov ecx, 0x811c9dc5
movzx eax, byte [ebp + edx - 0x10]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x10044304
push ecx
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000c7cf
mov esi, dword [eax + 4]
test esi, esi
jne 0x10044331
mov esi, dword [edi + 4]
cmp esi, dword [ebx + 0xa4]
je 0x1004436b
mov edx, dword [0x1006aa3c]
add edx, 0x24
mov eax, dword [edx]
cmp eax, dword [edx + 4]
je 0x1004435f
push dword [ebp - 0x10]
push 0x100087b8
push 0x100085b8
push edx
call fcn.1004ef03
add esp, 0x10
push esi
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.1004469c
lea ecx, [ebp - 0x18]
call fcn.1000e541
call fcn.10057b05
ret
Function at 0x10048f80
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1006a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
push 0x10
lea edi, [esi + 0x1c]
mov dword [esi], 0x10002760
push 0x100040b0
push edi
mov dword [esi + 4], 0x10002754
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
lea ecx, [esi + 0xc]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x1004900f
mov eax, dword [ecx]
mov esi, edi
mov dword [ebp - 0x24], esp
sub esp, 0x10
mov edi, esp
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
movsd dword es:[edi], dword [esi]
push eax
mov ecx, dword [ecx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x1006b410]
mov eax, dword [ebp - 0x30]
call dword [eax + 0x10]
cmp dword [ebp - 0x24], esp
je 0x1004900c
mov ecx, 4
int 0x29
mov esi, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x2c]
mov esi, esp
mov eax, dword [ecx]
mov edi, dword [eax + 0x10]
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, edi
call dword [0x1006b410]
call edi
cmp esi, esp
je 0x10049033
mov ecx, 4
int 0x29
test eax, eax
jne 0x1004906c
mov eax, dword [ebp - 0x28]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], esp
sub esp, 0x10
mov edi, esp
mov eax, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
movsd dword es:[edi], dword [esi]
mov ecx, dword [ecx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x1006b410]
mov eax, dword [ebp - 0x28]
call dword [eax + 0x10]
cmp dword [ebp - 0x24], esp
je 0x1004906c
mov ecx, 4
int 0x29
mov esi, dword [ebp - 0x2c]
lea ecx, [esi + 0x3c]
call fcn.1004a72b
lea ecx, [esi + 0x30]
call fcn.1000b6bc
lea ecx, [esi + 0x2c]
call fcn.1000b6bc
lea ecx, [esi + 0x18]
call fcn.1000b6bc
lea ecx, [esi + 0x14]
call fcn.1000b6bc
lea ecx, [esi + 0x10]
call fcn.1000b6bc
lea ecx, [esi + 0xc]
call fcn.1000b6bc
mov dword [esi + 4], 0x1000118c
lock dec dword [0x1006a9fc]
mov dword [esi + 4], 0x10001198
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10056730
leave
ret

Function at 0x10056788
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x100567c5
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x100567be
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x100567ca
add edx, 0x28
cmp edx, esi
jne 0x100567af
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100567c7
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x402c00
pop dword [ebp - 0x3c]
mov eax, 0x402c00
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x436b1e40
sub dword [ebp - 0x4c], 0xf518d8f5
mov dword [ebp - 0x48], 0xeb75bbac
sub dword [ebp - 0x48], 0xb9426f67
mov dword [ebp - 0x44], 0x77cd663d
sub dword [ebp - 0x44], 0x2b81220f
mov dword [ebp - 0x40], 0xbcf068d4
sub dword [ebp - 0x40], 0xbcf068d4
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xee8b6491
add eax, 0x11b51bfb
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xcbdd2e7d
add dword [ebp - 0x4c], 0xa8953ad9
mov dword [ebp - 0x48], 0x7122e6bf
sub dword [ebp - 0x48], 0x2fb6854a
mov dword [ebp - 0x44], 0x982bd9fd
sub dword [ebp - 0x44], 0x34bc6d91
mov dword [ebp - 0x40], 0xb617282e
add dword [ebp - 0x40], 0x49e8d7d2
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xacd0b756
add eax, 0x536fc97e
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x389be
push 0
call eax
mov ecx, 0x958cf108
sub ecx, 0x958ca15a
xor ebx, ebx
add ebx, eax
mov edx, 0xda945705
add edx, 0x25acb8fb
add edx, dword [ebp - 0x3c]
mov edi, 0xe68bd564
sub edi, 0xb19a1fe9
mov esi, dword [edx]
sub dword [ebp - 0x10], 0xd7b2936b
sub esi, edi
xor dword [ebp - 0x1c], edi
mov dword [ebx], esi
sub dword [ebp - 0x28], 0x7816cd1b
add ebx, 4
add edx, 0xef5b76ec
sub edx, 0xef5b76e8
loop 0x402d1f
add eax, 0x6622e97c
sub eax, 0x6621b7f1
mov ebx, eax
add eax, 5
mov ecx, 0x10247e78
add ecx, 0xf01b8188
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40704c], 1
mov dword [0x407050], 1
mov dword [0x407054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401878
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00402890
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00402890
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40244c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40246b
mov eax, 0
jmp 0x4024af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40248e
mov eax, 0
jmp 0x4024af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4024aa
mov eax, 0
jmp 0x4024af
mov eax, 1
leave
ret
Function at 0x4024b1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402510
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402508
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402508
mov eax, dword [ebp - 4]
jmp 0x402524
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4024e5
mov eax, 0
leave
ret
Function at 0x40f7ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040876d
and dword [ebp - 0x14], 0
cmp dword [0x4202f0], 0
mov dword [ebp - 0x18], eax
jne 0x40f85f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f907
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40f907
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4202f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4202f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4202f8], eax
call edi
push eax
call esi
mov dword [0x420300], eax
test eax, eax
je 0x40f85f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4202fc], eax
mov eax, dword [0x4202fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f8b8
cmp dword [0x420300], ecx
je 0x40f8b8
push eax
call esi
push dword [0x420300]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f8b8
test ebx, ebx
je 0x40f8b8
call edi
test eax, eax
je 0x40f8af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f8af
test byte [ebp - 8], 1
jne 0x40f8b8
or dword [ebp + 0x10], 0x200000
jmp 0x40f8eb
mov eax, dword [0x4202f4]
cmp eax, dword [ebp - 0x18]
je 0x40f8eb
push eax
call esi
test eax, eax
je 0x40f8eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f8eb
mov eax, dword [0x4202f8]
cmp eax, dword [ebp - 0x18]
je 0x40f8eb
push eax
call esi
test eax, eax
je 0x40f8eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4202f0]
call esi
test eax, eax
je 0x40f907
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f909
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004050a7
leave
ret
Function at 0x413990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellAboutA]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_ColorMatchToTarget]
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_StretchDIBits]
push 0
push 0
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
push 0
push 0
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_PlayMetaFileRecord]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
push 0
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esp, ebp
pop ebp
ret

Function at 0x413ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x41e1f0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov dword [ebp - 4], 0
jmp 0x413b06
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jge 0x413b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx ebx, byte [edx]
call fcn.00413aa0
xor ebx, eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], bl
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
lea ecx, [ebp - 0x808]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x413afd
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004050a7
mov esp, ebp
pop ebp
ret 8
Function at 0x9151b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00915140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00915140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00915140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00915140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x915bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x915c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x92787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x915c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x915c52
xor eax, eax
pop esi
leave
ret 4