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

Disassembly:
mov eax, 0x4c8084
call fcn.00419198
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004bf539
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4b0f29
call fcn.004bf539
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4b0f37
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4b0f45
or eax, 0xffffffff
jmp 0x4b102d
mov ecx, esi
call fcn.004b0e60
mov dword [ebp - 0x14], eax
call fcn.004b1d20
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4b0f7c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4b0f7c
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004b1cd4
push dword [ebp - 0x14]
call fcn.004b1805
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004b0b7b
cmp eax, edi
je 0x4b0fef
test byte [esi + 0x24], 0x10
je 0x4b0fbd
push 4
mov ecx, esi
pop ebx
call fcn.004b4b87
test ah, 1
je 0x4b0fb5
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004b4271
cmp dword [esi + 0x1c], edi
je 0x4b0fef
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004b4d13
jmp 0x4b0fef
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4b1003
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4b101c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4b101c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004b0e9a
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4b2218
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b2250
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ae57b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ae553
jmp 0x4b225c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b401a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b405c
call fcn.004bf539
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b405c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b4053
xor eax, eax
jmp 0x4b4064
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b406a
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401054
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret
Function at 0x401060
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
push esi
push 0x104
push 0x4099e0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 8]
mov esi, 2
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4010db
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4010bb
cmp dword [esp + 0xc], 4
je case.default.0x4010f1
mov eax, dword [esp + 0x10]
mov esi, 3
cmp eax, 1
jne 0x4010db
mov esi, 4
jmp 0x4010db
cmp eax, 1
jne 0x4010db
mov ecx, dword [esp + 0x14]
and ecx, 0xffff
cmp ecx, 0x549
jbe case.default.0x4010f1
mov esi, 2
mov edx, dword [esp + 0x120]
movsx eax, byte [edx]
add eax, 0xffffffd0
cmp eax, 9
ja case.default.0x4010f1
jmp dword [eax*4 + 0x4012ec]
cmp esi, 3
je 0x401106
cmp esi, 4
jne case.default.0x4010f1
push str.VID_0402PID_5602
push esi
call fcn.00402290
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 4
push eax
push 4
push str.find
push str.SOFTWAREWebCam_bs_install
push 0x80000002
call fcn.00401000
mov eax, dword [esp + 0x24]
add esp, 0x20
test eax, eax
jne case.default.0x4010f1
push 0
push str.BisonCam_Uninstallation
push str.__Hardware_missing_or_mismatch___n_Please_plug_in_the_correct_USB_camera.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
cmp esi, 3
je 0x40116e
cmp esi, 4
jne 0x40117c
push str.VID_0402PID_5602
push esi
call fcn.00402480
add esp, 8
push 0
push str.VID_0402PID_5602
push esi
call fcn.00401320
push esi
call fcn.00401880
add esp, 0x10
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
cmp esi, 3
je 0x4011ab
cmp esi, 4
jne 0x4011b9
push str.VID_0402PID_5602
push esi
call fcn.00402480
add esp, 8
push 1
push str.VID_0402PID_5602
push esi
call fcn.00401320
push esi
call fcn.00401880
add esp, 0x10
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x409aec
lea ecx, [esp + 0xa0]
push 0x408094
push ecx
call esi
push 1
lea edx, [esp + 0xac]
push 0x408090
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x9c]
push eax
push str.WantPreview
push str.annie
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
push esi
call fcn.00403b50
add esp, 4
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
call fcn.004036b0
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
call fcn.00403960
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
cmp esi, 3
je 0x40127d
cmp esi, 4
jne 0x4012ac
push str.VID_0402PID_5602
push esi
call fcn.00402290
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push str.CheckForScan_FindDeviceBefore
push str.SYSTEMCurrentControlSetServicesCam5603D
push 0x80000002
mov dword [esp + 0x24], eax
call fcn.00401000
add esp, 0x20
call fcn.00402680
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
push esi
call fcn.004026b0
add esp, 4
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
call fcn.00403650
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
Function at 0x401e20
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x320
cmp eax, 3
push esi
push edi
je 0x401e4a
cmp eax, 4
je 0x401e4a
cmp eax, 2
jne 0x401f93
lea edx, [esp + 0x1c]
mov edi, str.SYSTEMCurrentControlSetServicesClassImage
jmp 0x401e53
lea edx, [esp + 0x1c]
mov edi, str.SYSTEMCurrentControlSetControlClass6BDD1FC6_810F_11d0_bec7_08002be2092f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f93
push eax
push eax
push eax
push eax
mov ecx, dword [esp + 0x18]
push eax
push eax
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [esp + 0x10]
lea esi, [edx - 1]
test esi, esi
jl 0x401f88
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x124]
push 0x104
push eax
push esi
push ecx
call ebp
test eax, eax
jne 0x401f80
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push eax
lea eax, [esp + 0x130]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f80
lea edx, [esp + 0x18]
lea eax, [esp + 0x228]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.NTMPDriver
push edx
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x401f75
lea eax, [esp + 0x228]
push str.BisonCam.sys
push eax
call fcn.00403de0
add esp, 8
test eax, eax
jne 0x401f75
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x124]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401f80
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec esi
jns 0x401ed1
pop ebp
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x320
ret
Function at 0x401fa0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x110]
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
push eax
push 0xf003f
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40204a
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x2c]
push eax
push edx
push eax
push eax
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x14]
lea esi, [ecx - 1]
test esi, esi
jl 0x402030
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x40202d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00401fa0
mov edi, eax
add esp, 8
test edi, edi
jne 0x402055
dec esi
jns 0x401fff
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x120]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x402290
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x138
mov eax, dword [esp + 0x140]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x48]
push str.USB_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push str.setupapi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x402471
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsW
push ebp
call esi
push str.SetupDiEnumDeviceInfo
push ebp
mov edi, eax
call esi
push str.SetupDiGetDeviceRegistryPropertyA
push ebp
mov dword [esp + 0x20], eax
call esi
push str.SetupDiCallClassInstaller
push ebp
mov ebx, eax
call esi
mov edx, dword [esp + 0x14]
push str.SetupDiDestroyDeviceInfoList
push edx
mov ebp, eax
call esi
test edi, edi
mov dword [esp + 0x24], eax
je 0x402337
mov esi, dword [esp + 0x18]
test esi, esi
je 0x402337
test ebx, ebx
je 0x402337
test ebp, ebp
je 0x402337
test eax, eax
je 0x402337
push 6
push 0
push 0
push 0
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402347
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x138
ret
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x1c
push eax
push 0
push ebp
mov dword [esp + 0x28], 0
call esi
test eax, eax
je 0x402449
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push esi
lea edx, [esp + 0x28]
push esi
push edx
lea eax, [esp + 0x38]
push 1
push eax
push ebp
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
jne 0x4023db
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x4023e1
call edi
cmp eax, 0x7a
jne 0x40245f
test esi, esi
je 0x4023ac
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
push esi
push ecx
lea edx, [esp + 0x38]
push 1
push edx
push ebp
call ebx
test eax, eax
je 0x402389
jmp 0x4023e1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x40242d
mov al, byte [esi]
mov edi, esi
test al, al
je 0x402422
mov eax, dword [esp + 0x10]
add eax, esi
cmp edi, eax
jae 0x402422
push 0x15
lea ecx, [esp + 0x48]
push edi
push ecx
call fcn.00403e6c
add esp, 0xc
test eax, eax
je 0x402337
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x4023f0
test esi, esi
je 0x40242d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
inc eax
push edx
push eax
push ebp
mov dword [esp + 0x28], eax
call dword [esp + 0x24]
test eax, eax
jne 0x402369
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402459
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push ebp
call dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret
Function at 0x402480
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x13c
mov eax, dword [esp + 0x144]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x4c]
push str.USB_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push str.setupapi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x40266f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsW
push ebp
call esi
push str.SetupDiEnumDeviceInfo
push ebp
mov edi, eax
call esi
push str.SetupDiGetDeviceRegistryPropertyA
push ebp
mov dword [esp + 0x1c], eax
call esi
push str.SetupDiCallClassInstaller
push ebp
mov ebx, eax
call esi
push str.SetupDiDestroyDeviceInfoList
push ebp
mov dword [esp + 0x20], eax
call esi
test edi, edi
mov dword [esp + 0x28], eax
je 0x402529
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402529
test ebx, ebx
je 0x402529
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402529
test eax, eax
je 0x402529
push 4
push 0
push 0
push 0
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402539
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x13c
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x1c
push edx
push 0
push ebp
mov dword [esp + 0x28], 0
call dword [esp + 0x20]
test eax, eax
je 0x402647
lea eax, [esp + 0x10]
xor esi, esi
push eax
push esi
lea ecx, [esp + 0x28]
push esi
push ecx
lea edx, [esp + 0x3c]
push 1
push edx
push ebp
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
jne 0x4025cf
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x4025d5
call edi
cmp eax, 0x7a
jne 0x40265d
test esi, esi
je 0x4025a0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push edx
lea eax, [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x3c]
push 1
push ecx
push ebp
call ebx
test eax, eax
je 0x40257d
jmp 0x4025d5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x40262b
mov al, byte [esi]
mov edi, esi
test al, al
je 0x402620
mov edx, dword [esp + 0x10]
add edx, esi
cmp edi, edx
jae 0x402620
push 0x15
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.00403e6c
add esp, 0xc
test eax, eax
je 0x402614
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x4025e4
jmp 0x402620
lea ecx, [esp + 0x2c]
push ecx
push ebp
push 5
call dword [esp + 0x24]
test esi, esi
je 0x40262b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
inc eax
push edx
push eax
push ebp
mov dword [esp + 0x28], eax
call dword [esp + 0x20]
test eax, eax
jne 0x40255d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402657
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push ebp
call dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13c
ret
Function at 0x403470
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403496
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x4034a0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10c
mov eax, dword [str._unknown_]
mov ecx, dword [0x409294]
mov dx, word [0x409298]
push ebp
mov ebp, dword [esp + 0x114]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
rep stosd dword es:[edi], eax
push ebp
push 0
push 0x410
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x403634
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push 4
push ecx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x403634
mov eax, dword [esp + 8]
push ebx
push esi
lea edx, [esp + 0x18]
push 0x104
push edx
push eax
push edi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov esi, str.rundll32.exe
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403557
test cl, cl
je 0x403553
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403557
add eax, 2
add esi, 2
test cl, cl
jne 0x40352f
xor eax, eax
jmp 0x40355c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403569
push ebp
call fcn.00403470
add esp, 4
mov esi, str.Rundll32.exe
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40359a
test cl, cl
je 0x403596
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40359a
add eax, 2
add esi, 2
test cl, cl
jne 0x403572
xor eax, eax
jmp 0x40359f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4035ac
push ebp
call fcn.00403470
add esp, 4
mov esi, str.RunDll32.exe
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4035dd
test cl, cl
je 0x4035d9
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4035dd
add eax, 2
add esi, 2
test cl, cl
jne 0x4035b5
xor eax, eax
jmp 0x4035e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4035ef
push ebp
call fcn.00403470
add esp, 4
mov esi, str.RUNDLL32.exe
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403620
test cl, cl
je 0x40361c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403620
add eax, 2
add esi, 2
test cl, cl
jne 0x4035f8
xor eax, eax
jmp 0x403625
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
jne 0x403634
push ebp
call fcn.00403470
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
add esp, 0x10c
ret
Function at 0x403650
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call fcn.00404010
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x403679
add esp, 0x1004
ret
push edi
mov edi, dword [esp + 4]
shr edi, 2
je 0x40369a
push esi
lea esi, [esp + 0xc]
mov edx, dword [esi]
push edx
call fcn.004034a0
add esp, 4
add esi, 4
dec edi
jne 0x403688
pop esi
mov eax, 1
pop edi
add esp, 0x1004
ret
Function at 0x405245
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409728
cmp edx, dword [eax]
je 0x405267
add eax, 8
inc ecx
cmp eax, 0x4097b8
jl 0x405258
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409728]
jne 0x405395
mov eax, dword [0x409b00]
cmp eax, 1
je 0x40536f
test eax, eax
jne 0x405298
cmp dword [0x409414], 1
je 0x40536f
cmp edx, 0xfc
je 0x405395
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4052cf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405820
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405990
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405312
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405990
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407430
push edi
call fcn.00406620
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405820
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405830
lea eax, [ebp - 0xa0]
push 0x407410
push eax
call fcn.00405830
push dword [esi + 0x40972c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405830
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040658e
add esp, 0x2c
pop edi
jmp 0x405395
lea eax, [ebp + 8]
lea esi, [esi + 0x40972c]
push 0
push eax
push dword [esi]
call fcn.00405990
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx