joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401040
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [eax + 0x14], 0x10
push ebx
push edi
mov ebx, ecx
jb 0x401054
mov edi, dword [eax]
jmp 0x401056
mov edi, eax
push 0
push 0
push 0
push 1
push 0x411418
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
test eax, eax
je 0x40109d
push 0
push 0
push 3
push 0x41141e
push 0x41141e
push 0x50
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x4010a7
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x14], 0x10
jb 0x4010b1
mov ecx, dword [ebx]
jmp 0x4010b3
mov ecx, ebx
push 0
push 0x4000000
push 0
push 0
push 0
push ecx
push 0x411434
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
push 0
push 0
push eax
mov dword [esi + 8], eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, eax
test edi, edi
je 0x40112d
mov eax, dword [esi + 8]
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0x20000013
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x401112
cmp dword [ebp - 8], 0xc8
je 0x401116
xor edi, edi
jmp 0x40112d
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 8]
push eax
call fcn.004012c0
mov edi, eax
test edi, edi
je 0x40112d
mov edi, 1
mov ecx, dword [esi + 8]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call ebx
mov edx, dword [esi + 4]
push edx
call ebx
mov eax, dword [esi]
push eax
call ebx
mov eax, edi
pop edi
mov dword [esi + 4], 0
mov dword [esi], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4012c0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x413084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
push 0x400
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00404a86
push 0x400
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
call fcn.0040afd0
add esp, 0x10
mov esi, ebx
jmp 0x401320
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x401369
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40133f
mov byte [esi + 1], al
jmp 0x401369
add dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401369
add esi, dword [ebp - 0x14]
mov edx, esi
sub edx, ebx
cmp edx, 0x400
jb 0x401320
mov byte [ebx + 0x3ff], 0
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401370
mov esi, dword [ebp + 8]
sub eax, edx
mov edi, eax
mov eax, ebx
call fcn.00401460
mov esi, 1
jmp 0x40139f
push ebx
call fcn.00405031
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4018a0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x10]
push ecx
push 0x411288
push 1
push esi
push 0x411358
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push str.ROOTCIMV2
push eax
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push esi
push esi
push str.SELECT_NumberOfLogicalProcessors_FROM_Win32_Processor
push 0x411514
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x401983
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
push 1
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x401983
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x28]
push edx
push esi
push str.NumberOfLogicalProcessors
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
je 0x401946
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ax, word [ebp - 0x20]
cmp ax, si
jg 0x4019ad
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401a60
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x413084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x288
xor esi, esi
mov dword [ebp - 0x28], 0x288
call fcn.00404a86
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401a9e
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b6e
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
cmp eax, 0x6f
jne 0x401ada
push ebx
call fcn.00405031
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00404a86
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401ada
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b6e
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x28]
push edx
push ebx
call edi
test eax, eax
jne 0x401b7e
mov cx, word [ebx + 0x198]
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 0x2c]
shr edx, 8
movzx ecx, dl
movzx edx, byte [ebp - 0x2c]
push ecx
push edx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov eax, dword [ebx + 0x194]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
push ecx
shr edx, 0x10
mov dword [ebp - 0x30], eax
movzx ecx, dl
push ecx
shr eax, 8
movzx edx, al
movzx eax, byte [ebp - 0x30]
push edx
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
push 0x20
push ecx
call fcn.00405191
lea eax, [ebp - 0x24]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b61
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x24]
mov esi, 0x413f18
call fcn.00401460
mov esi, 1
push ebx
call fcn.00405031
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b6e
mov esp, ebp
pop ebp
ret
Function at 0x402430
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x413084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push str.HideSharedMemory
push 0x400
push 0
push 4
push 0
mov edi, ecx
push 0xffffffffffffffff
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x10c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x402486
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b6e
mov esp, ebp
pop ebp
ret 4
push esi
push 0x400
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x402509
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.0040afd0
add esp, 0xc
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402509
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea edx, [ebp - 0x108]
push edx
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
je 0x402509
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00405652
mov edi, eax
add esp, 8
test edi, edi
jne 0x40251e
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b6e
mov esp, ebp
pop ebp
ret 4
inc edi
cmp byte [esi], 0
je 0x40253f
lea ecx, [esi + 1]
push edi
push ecx
call fcn.00405768
add esp, 8
test eax, eax
je 0x40253f
movsx edx, byte [esi]
add esi, edx
cmp byte [esi], 0
jne 0x402524
push edi
call fcn.004057d6
add al, 6
lea edx, [esi + 1]
add esp, 4
mov byte [esi], al
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402553
movsx eax, byte [esi]
mov ecx, dword [ebp - 0x110]
push esi
mov dword [eax + esi - 4], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov edi, dword [ebp - 0x10c]
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call esi
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00404b6e
mov esp, ebp
pop ebp
ret 4

Function at 0x402e30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
xor ecx, ecx
mov dword [ebx + 0x1c], 0x67452301
mov dword [ebx + 0x20], 0xefcdab89
mov dword [ebx + 0x24], 0x98badcfe
mov dword [ebx + 0x28], 0x10325476
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebp - 4], ecx
mov dword [ebx + 0x10], ecx
cmp eax, ecx
je 0x402e79
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.00402630
mov ecx, ebx
call fcn.00402700
push esi
call fcn.004025b0
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403a90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e3d0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x413084]
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
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push eax
lea edx, [ebp - 0x2c]
xor esi, esi
push edx
mov dword [ebp - 4], esi
call fcn.00403f30
push 0x40
lea eax, [ebp - 0x7c]
push esi
mov ebx, 1
push eax
mov byte [ebp - 4], bl
call fcn.0040afd0
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x1c]
xor eax, eax
xor ecx, ecx
inc esi
push esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x80], 0x44
mov word [ebp - 0x50], cx
mov dword [ebp - 0x54], ebx
call fcn.00404a86
push esi
mov edi, eax
push 0
push edi
call fcn.0040afd0
mov eax, dword [ebp - 0x2c]
mov ebx, 0x10
add esp, 0x28
cmp dword [ebp - 0x18], ebx
jae 0x403b2b
lea eax, [ebp - 0x2c]
push eax
push 0x4115e4
push 0xffffffffffffffff
push esi
push edi
call fcn.00405191
add esp, 0x14
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403b7f
mov esi, dword [ebp - 0x34]
push str.IwantToHide
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
je 0x403b7f
push eax
mov ecx, esi
call fcn.00402430
cmp dword [ebp - 0x18], ebx
jb 0x403b90
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404cb8
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x20], ebx
jb 0x403bb3
mov edx, dword [ebp + 0xc]
push edx
call fcn.00404cb8
add esp, 4
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.00404b6e
mov esp, ebp
pop ebp
ret
Function at 0x404220
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x404244
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40423c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4042a2
cmp dword [esi + 0x14], 0x10
jb 0x40426b
mov eax, dword [esi]
jmp 0x40426d
mov eax, esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4042b2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404780
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x40478e
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
jne 0x4047b9
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00404a86
add esp, 4
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x40480c
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4047f1
mov esi, dword [ebp + 8]
sub eax, edx
mov edi, eax
mov eax, ebx
call fcn.00401460
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
push ebx
call fcn.00405031
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404b6e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413084]
jne 0x404b78
repz ret
jmp fcn.00405c59
Function at 0x40bdde
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413084]
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.00408cd3
and dword [ebp - 0x14], 0
cmp dword [0x414c8c], 0
mov dword [ebp - 0x18], eax
jne 0x40be91
push 0x41118c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40bf39
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x411180
push ebx
call edi
test eax, eax
je 0x40bf39
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x411170
push ebx
mov dword [0x414c8c], eax
call edi
push eax
call esi
push 0x41115c
push ebx
mov dword [0x414c90], eax
call edi
push eax
call esi
push 0x411140
push ebx
mov dword [0x414c94], eax
call edi
push eax
call esi
mov dword [0x414c9c], eax
test eax, eax
je 0x40be91
push 0x411128
push ebx
call edi
push eax
call esi
mov dword [0x414c98], eax
mov eax, dword [0x414c98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40beea
cmp dword [0x414c9c], ecx
je 0x40beea
push eax
call esi
push dword [0x414c9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40beea
test ebx, ebx
je 0x40beea
call edi
test eax, eax
je 0x40bee1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40bee1
test byte [ebp - 8], 1
jne 0x40beea
or dword [ebp + 0x10], 0x200000
jmp 0x40bf1d
mov eax, dword [0x414c90]
cmp eax, dword [ebp - 0x18]
je 0x40bf1d
push eax
call esi
test eax, eax
je 0x40bf1d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bf1d
mov eax, dword [0x414c94]
cmp eax, dword [ebp - 0x18]
je 0x40bf1d
push eax
call esi
test eax, eax
je 0x40bf1d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x414c8c]
call esi
test eax, eax
je 0x40bf39
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40bf3b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b6e
leave
ret
Function at 0x404080
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x420090]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor esi, esi
push ecx
lea edx, [ebp - 0x218]
or eax, 0x2001f
push edx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00403fc0
mov ebx, eax
cmp ebx, esi
je 0x4040f8
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x4040e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d34e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x218]
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40417c
lea esp, [esp]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00404080
mov ebx, eax
cmp ebx, esi
jne 0x4040d2
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x218]
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404130
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x404193
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
mov ebx, dword [ebp - 0x220]
mov eax, edi
mov dword [ebp - 0x214], esi
call fcn.00404240
mov edi, eax
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x4041b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d34e
mov esp, ebp
pop ebp
ret 4
Function at 0x404de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416856
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x420090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, edi
jne 0x404e60
call fcn.00403270
mov edi, eax
jmp 0x404f79
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x404e7f
call fcn.00403270
jmp 0x404f70
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x404e9b
call fcn.00403270
jmp 0x404f70
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x404ebc
mov edi, 0x8007000e
jmp 0x404f72
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x404ed1
cmp eax, 0xffffffff
jbe 0x404edb
push 0x80070216
call fcn.00402000
cmp eax, 0x400
jbe 0x404f0d
lea ecx, [ebp - 0x418]
push ecx
call fcn.00403960
jmp 0x404f19
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x404f31
mov edi, 0x8007000e
jmp 0x404f72
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x404f4f
call fcn.00403270
jmp 0x404f70
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404c40
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x404f92
lea eax, [ebp - 0x418]
call fcn.00403950
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d34e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406290
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4167b0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x420090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x74]
xor ebx, ebx
sub eax, ebx
je 0x406473
dec eax
je 0x40641a
dec eax
jne 0x40647a
mov eax, dword [esi + 0x15c]
xor ecx, ecx
mov word [ebp - 0x30], cx
mov ecx, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4062f6
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x30]
call fcn.00409ec0
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
cmp edi, 8
jae 0x406321
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
add eax, eax
cmp word [eax + ecx - 2], 0x2f
lea ecx, [eax + ecx - 2]
je 0x406356
mov ecx, ebx
cmp edi, 8
jae 0x40633c
lea ecx, [ebp - 0x30]
cmp word [eax + ecx - 2], 0x5c
lea eax, [eax + ecx - 2]
je 0x406356
lea eax, [ebp - 0x30]
call fcn.00407fb0
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
push 0x40
lea edx, [ebp - 0x88]
push 0
push edx
call fcn.0040e4c0
mov eax, dword [0x421060]
add esp, 0xc
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
mov eax, ebx
cmp edi, 8
jae 0x406389
lea eax, [ebp - 0x30]
push eax
push 0x41c5f4
lea edx, [ebp - 0x34]
call fcn.00409950
mov edi, dword [ebp - 0x34]
add esp, 8
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x8c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4063d3
mov eax, dword [ebp - 0x44]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [ebp - 0x40]
push ecx
call ebx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea eax, [edi - 0xc]
cmp eax, 0x421050
je 0x406406
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406406
push esi
call fcn.0040d423
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x40647a
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0040d343
add esp, 4
jmp 0x40647a
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f2
push edx
call edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3f0
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3f1
push ecx
call edi
push 0
push eax
call ebx
push 0
push 0
push esi
push 0x406d80
push 0
push 0
call fcn.0040e232
add esp, 0x18
mov dword [esi + 0x154], eax
jmp 0x40647a
push 1
call fcn.00406880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d34e
mov esp, ebp
pop ebp
ret 4