joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a06f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x1c
mov eax, 0x46d718
call fcn.00451935
mov edi, ecx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 8]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x42a0d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x42a0e8
mov dword [ebp - 0x28], vtable.CxMemFile.0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x1c], bl
push ebx
push edi
lea edi, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0042a0f2
mov esi, edi
mov bl, al
call fcn.0042c44d
mov al, bl
jmp 0x42a0ea
add edi, 0x44
push str.Unable_to_load_resource_
push edi
call fcn.0044eff0
pop ecx
pop ecx
xor al, al
call fcn.00451a0d
ret 8
Function at 0x433378
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4333c7
mov eax, dword [esi + 4]
push 0x1c
push 1
push esi
call dword [eax]
mov dword [esi + 0x180], eax
mov dword [eax], 0x4320f8
mov dword [eax + 4], 0x432224
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.00431f1d
cmp byte [esi + 0x40], 0
je 0x4333c0
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x433434
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x433429
mov eax, dword [esi + 8]
test eax, eax
je 0x4333e8
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x433425
cmp eax, 2
je 0x433429
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4333dd
cmp eax, 3
je 0x43340c
cmp eax, 1
jne 0x4333dd
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4333dd
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x4333dd
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x433452
cmp eax, 0xcc
je 0x433452
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.00433459
pop esi
ret
Function at 0x435038
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x4350c5
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004495c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x435085
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4350a7
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x435182
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x4350ed
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4350f8
xor eax, eax
jmp 0x435143
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x435115
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0044521b
jmp 0x435126
cmp ecx, 2
jne 0x43512d
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.0043d519
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.004495c0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x43516e
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x435182
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x435043
pop edi
pop ebx
leave
ret
Function at 0x446da0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x48e5fc]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
xor edx, edx
cmp ecx, edx
push esi
je 0x446e13
cmp eax, edx
jle 0x446e13
cmp edi, edx
je 0x446e13
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00446f10
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00446fd0
mov al, 1
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00448d93
add esp, 0x64
ret
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
xor al, al
call fcn.00448d93
add esp, 0x64
ret

Function at 0x447954
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00447893
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00449330
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4479a3
cmp dword [ebp - 0x1c], 5
jb 0x4479bb
jmp 0x4479b7
cmp dword [ebp - 0x10], 1
jne 0x4479bb
cmp dword [ebp - 0x1c], 4
ja 0x4479b7
jne 0x4479bb
cmp dword [ebp - 0x18], 0
jbe 0x4479bb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46f62c
call fcn.00412c87
test eax, eax
jge 0x4479dc
mov byte [0x4926dc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00448d93
add ebp, 0x78
leave
ret

Function at 0x447e56
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4918b0], 0
push esi
jne 0x447dc9
call fcn.00447cf4
test eax, eax
je 0x447e0c
mov eax, dword [0x4918b0]
cmp eax, 1
jne 0x447dea
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x447e0c
pop esi
ret
push eax
call dword [0x4918b8]
test eax, eax
jne 0x447e54
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x447e10
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4918b0]
call dword [0x4918b8]
mov edi, eax
test edi, edi
je 0x447e37
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x447e53
lea edi, [esi + 0xff0]
push esi
push dword [0x4918b0]
call dword [0x4918b4]
add esi, 0x10
cmp esi, edi
jb 0x447e3d
mov eax, esi
pop edi
pop esi
ret
jmp 0x447db6

Function at 0x448d93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e5fc]
jne 0x448d9d
repz ret
jmp fcn.00454644
Function at 0x44ed30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44ed6d
cmp dword [ebp + 0x14], edi
je 0x44ed6d
cmp ecx, edi
jne 0x44ed74
call fcn.00452b15
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044a172
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44ed88
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44eda9
cmp ebx, 0xffffffff
je 0x44ed98
push ebx
push edi
push ecx
call fcn.00449330
add esp, 0xc
cmp esi, edi
je 0x44ed55
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44ed55
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44edc5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44edcc
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44eebd
test word [esi + 0xc], 0x10c
je 0x44ee20
mov eax, dword [esi + 4]
test eax, eax
je 0x44ee20
jl 0x44ef1e
cmp ebx, eax
mov edi, ebx
jb 0x44edf1
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44eec5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00448dd2
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44eeb5
cmp ebx, dword [ebp - 0xc]
jb 0x44ee8d
cmp dword [ebp - 0xc], 0
je 0x44ee4a
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x44ee3f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44ee46
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44ee55
mov eax, closesocket
cmp ebx, eax
ja 0x44ee55
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44eef1
push eax
push dword [ebp - 8]
push esi
call fcn.0045c885
pop ecx
push eax
call fcn.0045facc
add esp, 0xc
test eax, eax
je 0x44ef30
cmp eax, 0xffffffff
je 0x44ef1e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44eeb5
push esi
call fcn.0045d124
cmp eax, 0xffffffff
pop ecx
je 0x44ef22
cmp dword [ebp - 4], 0
je 0x44eef1
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44edd4
mov eax, dword [ebp + 0x14]
jmp 0x44ed6f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44eedc
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00449330
add esp, 0xc
call fcn.00452b15
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44ed65
cmp dword [ebp + 0xc], 0xffffffff
je 0x44ef07
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00449330
add esp, 0xc
call fcn.00452b15
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44ed65
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44ed6f
or dword [esi + 0xc], 0x10
jmp 0x44ef22
Function at 0x45ac81
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x48f080]
je 0x45ac9c
inc edi
cmp edi, 0x17
jb 0x45ac8d
cmp edi, 0x17
jae 0x45ae1c
push ebp
push 3
call fcn.00466f34
cmp eax, 1
pop ecx
je 0x45ade8
push 3
call fcn.00466f34
test eax, eax
pop ecx
jne 0x45acd0
cmp dword [0x48e2b4], 1
je 0x45ade8
cmp ebx, 0xfc
je 0x45ae1b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x492108
push ebp
call fcn.00457ba8
add esp, 0xc
test eax, eax
je 0x45ad06
push esi
push esi
push esi
push esi
push esi
call fcn.0044a076
add esp, 0x14
push 0x104
mov esi, 0x492121
push esi
push 0
mov byte [0x492225], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45ad4a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00457ba8
add esp, 0xc
test eax, eax
je 0x45ad4a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044a076
add esp, 0x14
push esi
call fcn.004492a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45ad8f
push esi
call fcn.004492a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49241c
push 0x470b74
sub ecx, eax
push ecx
push eax
call fcn.00464dce
add esp, 0x14
test eax, eax
je 0x45ad8f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044a076
add esp, 0x14
jmp 0x45ad91
xor esi, esi
push 0x470b70
push ebx
push ebp
call fcn.00464d5d
add esp, 0xc
test eax, eax
je 0x45adb1
push esi
push esi
push esi
push esi
push esi
call fcn.0044a076
add esp, 0x14
push dword [edi*8 + 0x48f084]
push ebx
push ebp
call fcn.00464d5d
add esp, 0xc
test eax, eax
je 0x45add3
push esi
push esi
push esi
push esi
push esi
call fcn.0044a076
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00466d77
add esp, 0xc
jmp 0x45ae1b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45ae1b
cmp ebp, 0xffffffff
je 0x45ae1b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x48f084]
push dword [esi]
call fcn.004492a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x466d77
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00454892
xor ebx, ebx
cmp dword [0x4926ac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x466e4d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x466f2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x466f2d
push eax
call fcn.00454824
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4926ac], eax
call esi
push eax
call fcn.00454824
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4926b0], eax
call esi
push eax
call fcn.00454824
mov dword [0x4926b4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004505fb
test eax, eax
pop ecx
pop ecx
je 0x466e1b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044a076
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x466e4d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00454824
cmp eax, ebx
pop ecx
mov dword [0x4926bc], eax
je 0x466e4d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00454824
pop ecx
mov dword [0x4926b8], eax
mov eax, dword [0x4926b8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x466ed2
cmp dword [0x4926bc], ecx
je 0x466ed2
push eax
call fcn.0045489b
push dword [0x4926bc]
mov esi, eax
call fcn.0045489b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x466ed2
cmp edi, ebx
je 0x466ed2
call esi
cmp eax, ebx
je 0x466e9f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x466e9f
test byte [ebp - 0x18], 1
jne 0x466ed2
lea eax, [ebp - 0x10]
push eax
call fcn.00450632
test eax, eax
pop ecx
je 0x466eba
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044a076
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x466ec9
or dword [ebp + 0x10], 0x200000
jmp 0x466f0d
or dword [ebp + 0x10], 0x40000
jmp 0x466f0d
mov eax, dword [0x4926b0]
cmp eax, dword [ebp - 8]
je 0x466f0d
push eax
call fcn.0045489b
cmp eax, ebx
pop ecx
je 0x466f0d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x466f0d
mov eax, dword [0x4926b4]
cmp eax, dword [ebp - 8]
je 0x466f0d
push eax
call fcn.0045489b
cmp eax, ebx
pop ecx
je 0x466f0d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4926ac]
call fcn.0045489b
cmp eax, ebx
pop ecx
je 0x466f2d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x466f2f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100229a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001aecf
xor ebx, ebx
cmp dword [0x10032e4c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10022a75
push 0x1002f948
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100229e0
xor eax, eax
jmp 0x10022b39
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x1002f93c
push edi
call esi
cmp eax, ebx
je 0x100229d9
push eax
call fcn.1001ae6c
mov dword [esp], 0x1002f92c
push edi
mov dword [0x10032e4c], eax
call esi
push eax
call fcn.1001ae6c
mov dword [esp], 0x1002f918
push edi
mov dword [0x10032e50], eax
call esi
push eax
call fcn.1001ae6c
mov dword [0x10032e54], eax
lea eax, [ebp - 8]
push eax
call fcn.1001c80f
test eax, eax
pop ecx
pop ecx
je 0x10022a43
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001dc3d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10022a75
push 0x1002f8fc
push edi
call esi
push eax
call fcn.1001ae6c
cmp eax, ebx
pop ecx
mov dword [0x10032e5c], eax
je 0x10022a75
push 0x1002f8e4
push edi
call esi
push eax
call fcn.1001ae6c
pop ecx
mov dword [0x10032e58], eax
mov eax, dword [0x10032e58]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10022aee
cmp dword [0x10032e5c], esi
je 0x10022aee
push eax
call fcn.1001aed8
pop ecx
call eax
cmp eax, ebx
je 0x10022abb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10032e5c]
call fcn.1001aed8
pop ecx
call eax
test eax, eax
je 0x10022abb
test byte [ebp - 0x18], 1
jne 0x10022aee
lea eax, [ebp - 0xc]
push eax
call fcn.1001c846
test eax, eax
pop ecx
je 0x10022ad6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001dc3d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10022ae5
or dword [ebp + 0x10], 0x200000
jmp 0x10022b1f
or dword [ebp + 0x10], 0x40000
jmp 0x10022b1f
mov eax, dword [0x10032e50]
cmp eax, esi
je 0x10022b1f
push eax
call fcn.1001aed8
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10022b1f
mov eax, dword [0x10032e54]
cmp eax, esi
je 0x10022b1f
push dword [ebp - 4]
push eax
call fcn.1001aed8
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10032e4c]
call fcn.1001aed8
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404a2d
xor eax, eax
jmp 0x404aa8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404a43
xor eax, eax
jmp 0x404aa8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x404a8b
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x404a8b
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x404a64
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x404a97
xor eax, eax
jmp 0x404aa8
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
jne 0x404aa5
xor eax, eax
jmp 0x404aa8
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40ac24
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x20]
call fcn.0040b78c
movzx eax, al
test eax, eax
je 0x40ac92
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00409e5b
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00409e5b
push eax
push 0x4e
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00409eb4
mov ecx, eax
call fcn.00409bc7
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ad28
mov ecx, dword [ebp - 0x20]
call fcn.0040b222
movzx eax, al
test eax, eax
je 0x40acdf
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00409e5b
and eax, 0xffff
movzx eax, ax
push eax
push 0x111
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00409eb4
mov ecx, eax
call fcn.00409bc7
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ad28
push 1
push 0
push 0
mov eax, dword [ebp - 0x20]
push dword [eax + 0x28]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], eax
push 0x20
pop eax
cmp eax, dword [ebp - 0x14]
sbb eax, eax
neg eax
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
je 0x40ad28
mov eax, dword [ebp - 0x20]
mov al, byte [eax + 0x58]
or al, 2
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x58], al
push 1
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00409f03
mov al, byte [ebp - 1]
leave
ret
Function at 0x40baaf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x40bab8
xor eax, eax
jne 0x40bab8
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
shl eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and dword [eax], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40baf9
mov eax, dword [ebp - 0xc]
jmp 0x40bb4f
cmp dword [ebp - 4], 1
je 0x40bb0a
cmp dword [ebp - 4], 2
je 0x40bb0a
push 0xd
pop eax
jmp 0x40bb4f
cmp dword [ebp + 0xc], 0
je 0x40bb43
cmp dword [ebp - 8], 0
je 0x40bb3c
mov eax, dword [ebp - 8]
xor edx, edx
push 2
pop ecx
div ecx
test edx, edx
jne 0x40bb35
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + eax*2 - 2]
test eax, eax
je 0x40bb3a
push 0xd
pop eax
jmp 0x40bb4f
jmp 0x40bb43
mov eax, dword [ebp + 0xc]
and word [eax], 0
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
leave
ret 0xc