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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x18], 0x43
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x46
mov byte [ebp - 0x11], 0x69
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x41
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0x57
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x74
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x46
mov byte [ebp - 6], 0x69
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0x65
mov byte [ebp - 3], 0
mov byte [ebp - 0x2c], 0x43
mov byte [ebp - 0x2b], 0x6c
mov byte [ebp - 0x2a], 0x6f
mov byte [ebp - 0x29], 0x73
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x48
mov byte [ebp - 0x26], 0x61
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x24], 0x64
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x18]
push eax
call fcn.10002cc0
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.10002cc0
add esp, 4
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x2c]
push edx
call fcn.10002cc0
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
push 0x80
push 4
push 0
push 1
push 0x10000000
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x10002fa1
xor al, al
jmp 0x10002fc6
mov dword [ebp - 0x38], 0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push edx
call dword [ebp - 0x1c]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x10002fd0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
xor eax, eax
je 0x1000308a
mov byte [ebp - 0x111], 0
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x10003031
mov ecx, dword [ebp - 0x118]
and ecx, 1
je 0x10003021
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x118]
shr eax, 1
mov dword [ebp - 0x118], eax
jmp 0x10002ffe
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [ebp - 0x105], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100030a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x24], 0x43
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x6f
mov byte [ebp - 0x21], 0x73
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x48
mov byte [ebp - 0x1e], 0x61
mov byte [ebp - 0x1d], 0x6e
mov byte [ebp - 0x1c], 0x64
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x1a], 0x65
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x24]
push eax
call fcn.10002cc0
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x54
mov byte [ebp - 0xd], 0x68
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.10002cc0
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0x10002420
push 0
push 0
call dword [ebp - 4]
mov dword [ebp - 0x28], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x28]
push eax
call dword [ebp - 0x18]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10003170
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0x128
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.KERNEL32.dll_Process32First
lea edx, [ebp - 0x104]
push edx
call fcn.10002b10
add esp, 4
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp + 8]
jne 0x100031cd
mov eax, dword [ebp - 0x120]
jmp 0x100031e6
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100031a5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100031f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10003218
xor eax, eax
jmp 0x1000328d
mov dword [ebp - 0x230], 0x224
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x10003244
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000328d
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.10002dc0
add esp, 8
test eax, eax
jne 0x1000326d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x214]
jmp 0x1000328d
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x10003244
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100032a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0x128
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x13c], 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.100031f0
add esp, 8
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x10003454
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x134], ecx
mov edx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x138], edx
push 0x34102a7f
call fcn.10002c90
add esp, 4
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x120]
push eax
push 0
push 0x2a
call dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x10003454
push 0x1c29179f
call fcn.10002c90
add esp, 4
mov dword [ebp - 0x154], eax
push 4
push 0x1000
push 8
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [ebp - 0x154]
mov dword [ebp - 0x13c], eax
push 0x6328d74d
call fcn.10002c90
add esp, 4
mov dword [ebp - 0x148], eax
push 0
push 8
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [ebp - 0x148]
push 0x40
push 0x1000
push 0x800
push 0
mov edx, dword [ebp - 0x144]
push edx
call dword [ebp - 0x154]
mov dword [ebp - 0x150], eax
push 0
push 0x800
push 0x10002af0
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [ebp - 0x148]
push 0x2c7f4aee
call fcn.10002c90
add esp, 4
mov dword [ebp - 0x158], eax
push 0
push 0
mov edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x150]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [ebp - 0x158]
mov dword [ebp - 0x15c], eax
push 0x70ebfb28
call fcn.10002c90
add esp, 4
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x144]
push edx
call dword [ebp - 0x14c]
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100032d5
mov esp, ebp
pop ebp
ret
Function at 0x10003480
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
push eax
push 9
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100034ba
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x100035c1
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000351c
cmp dword [ebp - 0xc], 0xea
je 0x1000351c
cmp dword [ebp - 0xc], 0x7a
je 0x1000351c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
jmp 0x100035c1
mov edx, dword [ebp - 0x24]
lea eax, [edx + edx + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x38], 0
jne 0x10003544
mov dword [ebp - 0x20], 8
jmp 0x1000350a
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10003585
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10003480
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10003585
jmp 0x1000358e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0x3c], 0x103
je 0x1000359f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jb 0x1000354b
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esp, ebp
pop ebp
ret 8

Function at 0x10007855
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000d9f0]
jne 0x1000785f
repz ret
jmp fcn.10008e0d
Function at 0x10008908
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100038a6
and dword [ebp - 4], 0
cmp dword [0x10014480], 0
mov ebx, eax
jne 0x100089b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10008a6a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10008a6a
push eax
call fcn.10003834
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10014480], eax
call esi
push eax
call fcn.10003834
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10014484], eax
call esi
push eax
call fcn.10003834
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10014488], eax
call esi
push eax
call fcn.10003834
pop ecx
mov dword [0x10014490], eax
test eax, eax
je 0x100089b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10003834
pop ecx
mov dword [0x1001448c], eax
mov eax, dword [0x1001448c]
cmp eax, ebx
je 0x10008a11
cmp dword [0x10014490], ebx
je 0x10008a11
push eax
call fcn.100038af
push dword [0x10014490]
mov esi, eax
call fcn.100038af
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10008a11
test edi, edi
je 0x10008a11
call esi
test eax, eax
je 0x10008a08
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10008a08
test byte [ebp - 0xc], 1
jne 0x10008a11
or dword [ebp + 0x10], 0x200000
jmp 0x10008a4a
mov eax, dword [0x10014484]
cmp eax, ebx
je 0x10008a4a
push eax
call fcn.100038af
pop ecx
test eax, eax
je 0x10008a4a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10008a4a
mov eax, dword [0x10014488]
cmp eax, ebx
je 0x10008a4a
push eax
call fcn.100038af
pop ecx
test eax, eax
je 0x10008a4a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10014480]
call fcn.100038af
pop ecx
test eax, eax
je 0x10008a6a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10008a6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e552
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1000e5a1
add esi, eax
add eax, dword [esp]
push ebp
mov ebp, esp
sub esp, 0x2c
sub eax, eax
mov dword [ebp - 0x24], eax
sub eax, eax
sub dword [ebp - 0x1c], 0x72
and dword [ebp - 0x18], 0xffff
cmp eax, 0
ja 0x1000e5d7
mov ecx, 0
lea ecx, [ebp - 0x20]
or dword [ebp - 0x20], 0xffffff
cmp dword [ebp - 0x24], eax
jne 0x1000e5d7
push 4
push dword fs:[0x30]
add byte [eax], al
sub dword [ebp - 0x34], 0x16349
mov edi, dword [sym.imp.kernel32.dll_IsBadReadPtr]
call edi
je 0x1000ea79
call fcn.1000e705
pushfd
js 0x1000e5a9
cmp byte [eax], 0xe8
mov ch, 0xca
mov eax, dword [0x58c1d9ab]
push ebx
sar dword [ebp + ebp*4 - 0x7e], cl
shr dword [eax + 0x17], 1
cli
shr byte [ebp + 0x66f0e2f0], 0x11
and edx, dword [eax]
jb 0x1000e5ed
loope 0x1000e5de
push ebx
pushal
sub eax, 0x70d62c99
hlt
call fcn.1000fb09
invalid
Function at 0x401be0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401c2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c24
test esi, esi
je 0x401c24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c00
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f34
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401e9e
cmp eax, 4
jne 0x401ec0
test esi, esi
je 0x401eb2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401ea4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401eff
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401ef1
cmp ecx, 0x40
je 0x401eb2
cmp ecx, 4
je 0x401eb2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e10
lea esi, [esi]
Function at 0x401c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401c69
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401c5a
cmp esi, edx
jae 0x401c69
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401c48
cmp esi, edx
jae 0x401c69
cmp word [esi], 0
je 0x401c69
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4022b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dc5b
mov eax, dword fs:[0]
push eax
mov eax, 0x4030
call fcn.00426f40
mov eax, dword [0x44f00c]
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
push 0x4000
lea eax, [ebp - 0x4014]
push 0
push eax
call fcn.0040bd80
add esp, 0xc
mov dword [ebp - 0x4020], 0
test esi, esi
je 0x40249e
lea eax, [ebp - 0x4020]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x40249e
cmp eax, 0x3fff
ja 0x40249e
lea ecx, [ebp - 0x4014]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40249e
lea eax, [ebp - 0x402c]
push eax
lea eax, [ebp - 0x4030]
push eax
push 0x448424
lea eax, [ebp - 0x4014]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40249e
push 0x208
push 0
push 0x452740
call fcn.0040bd80
mov eax, dword [ebp - 0x4030]
add esp, 0xc
movzx esi, word [eax + 0xc]
movzx edi, word [eax + 0xe]
movzx ebx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov dword [ebp - 0x4038], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x454794]
cmp eax, dword [ecx + 4]
jle 0x4023e0
push 0x454794
call fcn.004099be
add esp, 4
cmp dword [0x454794], 0xffffffff
jne 0x4023e0
push 0x454794
mov dword [0x454790], 0
call fcn.00409974
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x4031], 0
movlpd qword [ebp - 0x401c], xmm0
lea eax, [ebp - 0x401c]
mov dword [ebp - 4], 0
push eax
call fcn.00424f12
add esp, 4
mov dword [ebp - 4], 1
lea eax, [ebp - 0x401c]
mov dword [ebp - 0x4028], eax
lea eax, [ebp - 0x4031]
mov dword [ebp - 0x4024], eax
lea eax, [ebp - 0x4028]
push eax
push 0x403b60
push 0x454790
call fcn.00425493
add esp, 0xc
test eax, eax
je 0x402481
lea eax, [ebp - 0x401c]
mov dword [ebp - 4], 2
push eax
call fcn.00424f4c
add esp, 4
push esi
push edi
push ebx
push dword [ebp - 0x4038]
push 0x452954
push 0x103
push 0x452740
call fcn.00402020
add esp, 0x1c
mov eax, 1
jmp 0x4024a0
lea eax, [ebp - 0x401c]
mov byte [ebp - 4], 3
push eax
call fcn.00424f6d
add esp, 4
mov byte [ebp - 4], 1
test al, al
je 0x4024d2
jmp 0x4024bc
xor eax, eax
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.00409555
mov esp, ebp
pop ebp
ret
sub esp, 8
lea eax, [ebp - 0x401c]
mov ecx, esp
push eax
call fcn.004020f0
call fcn.004021b0
call fcn.0042551c
int3
Function at 0x4027c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x402838
test esi, esi
je 0x402838
push 5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x402838
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402838
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [esi + 4]
mov byte [edi + 4], al
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402838
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409555
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00409555
mov esp, ebp
pop ebp
ret

Function at 0x403e90
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43df18
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x403f34
cmp word [esi], di
je 0x403f34
test eax, eax
je 0x403eef
cmp word [eax], di
je 0x403eef
push edi
push edi
push eax
push esi
push edi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x403f34
jmp 0x403f2f
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0040bd80
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToCacheFileW]
test eax, eax
js 0x403f34
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x403f52
mov dword [ebp - 0x424], edi
lea ecx, [ebp - 0x424]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp + 0x34]
mov dword [ebp - 4], 1
test esi, esi
je 0x403f70
mov edx, dword [esi]
lea eax, [ebp + 0x10]
cmp esi, eax
setne cl
movzx ecx, cl
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409555
mov esp, ebp
pop ebp
ret 0x30