joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc50
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x20]
lea esi, [edi + 7]
shr esi, 3
add esi, esi
push eax
add esi, esi
add esi, esi
push esi
push ebp
push ecx
push ebx
call fcn.0040c900
add esp, 0x14
test eax, eax
je 0x40cd24
mov edx, dword [esp + 0x14]
push 0
push 0
push ebp
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40ccfc
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ccfc
cmp edi, dword [esp + 0xc]
je 0x40cccf
push 0x576bd0
mov eax, 1
call fcn.004116c0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
sub esi, edi
je 0x40cd2b
mov edx, dword [esp + 0x20]
push esi
push 0
push edx
call fcn.0051d250
add esp, 0xc
xor eax, eax
add edi, dword [esp + 0x14]
push 0
push 0
adc eax, ebp
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40cd15
push 0x576bd0
mov eax, 0x576bd0
call fcn.00411410
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x20]
mov edx, ebx
call fcn.0040c810
test eax, eax
jne 0x40cd2b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x40d5d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x594ccc]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x40d603
mov dword [esp + 0x10], 0xffffffff
jmp 0x40d609
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40d637
push 0x576bd0
mov eax, 0x576bd0
call fcn.00411410
add esp, 4
jmp 0x40d717
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d667
push 0x576bd0
mov eax, 0x576bd0
call fcn.00411410
add esp, 4
jmp 0x40d717
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x40d689
mov eax, 1
push 0x576bd0
call fcn.004116c0
add esp, 4
jmp 0x40d717
cmp dword [esp + 0x40], ebx
je 0x40d6c5
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x40d6ab
mov eax, 5
push 0x576bd0
call fcn.004116c0
add esp, 4
jmp 0x40d717
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x40d70f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x40d6d3
mov ebx, esi
jmp 0x40d697
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40d6fc
push 0x576bd0
mov eax, 0x576bd0
call fcn.00411410
add esp, 4
jmp 0x40d717
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.0040c7c0
test eax, eax
je 0x40d717
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d721
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051d23b
add esp, 0x28
ret
Function at 0x40dcf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push ecx
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
push ecx
push eax
push esi
call ebx
test eax, eax
jne 0x40dd38
push 0x576bd0
mov eax, 0x576bd0
call fcn.00411410
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 8
lea eax, [esp + 0x24]
push eax
push esi
call ebp
test eax, eax
je 0x40dd1c
cmp dword [esp + 0x10], 8
jne 0x40dd9d
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov eax, edi
call fcn.0040eb50
add esp, 4
test eax, eax
je 0x40ddaf
mov edi, dword [edi + 4]
xor eax, eax
push eax
push eax
push eax
push edi
push esi
call ebx
test eax, eax
je 0x40dd1c
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
call ebp
test eax, eax
je 0x40dd1c
cmp dword [esp + 0x10], 4
je 0x40ddb9
push 0x576bd0
mov eax, 1
call fcn.004116c0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x40e470
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40e4b6
push 0x576bd0
mov eax, 0x576bd0
call fcn.00411410
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x40e548
jg 0x40e4de
cmp ebx, ecx
jb 0x40e548
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40e50d
push 0x576bd0
mov eax, 0x576bd0
call fcn.00411410
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.0040c7c0
test eax, eax
je 0x40e503
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e52e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e555
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x40e555
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x40f000
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x594ccc]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x40f140
cmp dword [esp + 0x28], ebp
je 0x40f140
push ebx
push 0x2800
call fcn.0051e9bc
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x40f063
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0051d23b
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x40f070
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.0040c4d0
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f116
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.0051d250
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40f109
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x40f109
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.0040ed80
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x40f120
inc edi
cmp edi, 0x10
jl 0x40f070
push ebx
call fcn.0051e865
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0051d23b
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0051d23b
add esp, 0x1c
ret
Function at 0x40f1f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x40f22a
cmp dword [esp + 0x34], esi
je 0x40f22a
push 0x200
call fcn.0051e9bc
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x40f235
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f394
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x40f32a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40f28d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f303
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f2f8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.0040f160
cmp edx, edi
jb 0x40f2f8
ja 0x40f2f2
cmp eax, dword [esp + 0x24]
jbe 0x40f2f8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x40f280
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x40f340
cmp dword [esp + 0x24], 0
jbe 0x40f394
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.0040c4d0
add esp, 0xc
test eax, eax
jne 0x40f379
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.0051e865
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.0040ed80
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.0051e865
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x413da0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554f50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x594ccc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x59ac20]
xor edi, edi
cmp ecx, edi
jne 0x413deb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x413df8
mov dword [ebp - 0x14], edi
jmp 0x413e10
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x413ead
mov ecx, dword [0x59ac20]
mov eax, dword [ecx]
cmp eax, edi
je 0x413dd7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x413dd7
mov dword [ebp - 4], edi
mov ebx, 0x59ac20
call fcn.00413ec0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x413e4e
mov dword [ebp - 0x18], 1
push 0x57f01c
lea eax, [ebp - 0x18]
push eax
call fcn.0051f8b5
mov ecx, esi
mov eax, dword [0x59ac20]
call fcn.00414150
test eax, eax
jne 0x413e73
mov dword [ebp - 0x1c], 4
push 0x57f01c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0051f8b5
mov dword [ebp - 4], 0xffffffff
jmp 0x413e98
mov edx, dword [0x59ac20]
mov eax, dword [edx]
test eax, eax
je 0x413eab
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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

Function at 0x413ec0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x413eed
xor ecx, ecx
jmp 0x413ef9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x413fad
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x413f20
mov dword [esp + 0xc], esi
jmp 0x413f80
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x413f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x413f6c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x413f80
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x413f80
push 0x576de0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x413f80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x413fa3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x413f12
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x413fc1
mov ecx, dword [ebx]
add ecx, 8
call fcn.00414250
test eax, eax
je 0x413fc1
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret
Function at 0x413fd0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x554fdb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x594ccc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.0051d250
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x414068
push 0x57f01c
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0051f8b5
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x414440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x582500]
test eax, eax
jl 0x414473
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [ebp - 0x120]
push edx
mov dword [0x582500], 0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
call fcn.0051d250
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x4144ff
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x41454e
push str.GetNativeSystemInfo
push 0x55ff94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41454e
lea edx, [ebp - 0x144]
push edx
call eax
mov eax, dword [ebp - 0x144]
cmp ax, 9
je 0x414535
cmp ax, 6
jne 0x41454e
mov eax, 1
mov dword [0x582500], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x414ac0
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 0x414adb
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 0x414b14
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x414b10
jmp 0x414b00
cmp esi, eax
jae 0x414b14
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x414b00
cmp esi, eax
jb 0x414b1b
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 0x414d90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov ecx, 0x10
mov esi, 0x55ffd0
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax*2 + 3]
lea edx, [ecx*4]
cmp edx, eax
mov dword [ebp - 0x54], ebx
movsb byte es:[edi], byte [esi]
jle 0x414de4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul ecx
mov edi, edx
shr edi, 0x1f
add edi, edx
lea eax, [edi*4]
mov dword [ebp - 0x4c], eax
test edi, edi
jle 0x414e75
mov eax, dword [ebp + 8]
lea esi, [ebx + 2]
add eax, 2
mov dword [ebp - 0x50], edi
lea esp, [esp]
mov cl, byte [eax - 2]
movzx edx, cl
shr edx, 2
movzx edx, byte [ebp + edx - 0x48]
mov byte [esi - 2], dl
mov dl, byte [eax - 1]
and cl, 3
shl cl, 4
movzx ebx, dl
movzx ecx, cl
shr ebx, 4
or ecx, ebx
movzx ecx, byte [ebp + ecx - 0x48]
and dl, 0xf
mov byte [esi - 1], cl
movzx ecx, byte [eax]
add dl, dl
add dl, dl
mov ebx, ecx
movzx edx, dl
shr ebx, 6
or edx, ebx
movzx edx, byte [ebp + edx - 0x48]
and ecx, 0x3f
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [esi], dl
mov byte [esi + 1], cl
add eax, 3
add esi, 4
sub dword [ebp - 0x50], 1
jne 0x414e10
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x54]
lea edx, [edi + edi*2]
sub ecx, edx
mov edx, ecx
test edx, edx
jle 0x414ee5
mov eax, dword [ebp + 8]
add dword [ebp - 0x4c], 4
lea ecx, [eax + edi*2]
lea esi, [edi + ecx]
mov cl, byte [esi]
movzx eax, cl
shr eax, 2
mov al, byte [ebp + eax - 0x48]
and cl, 3
shl cl, 4
mov byte [ebx + edi*4], al
mov al, 0x3d
movzx ecx, cl
cmp edx, 1
jne 0x414eba
mov dl, byte [ebp + ecx - 0x48]
mov byte [ebx + edi*4 + 1], dl
mov byte [ebx + edi*4 + 2], al
jmp 0x414ee1
mov dl, byte [esi + 1]
movzx esi, dl
and dl, 0xf
shr esi, 4
or ecx, esi
movzx ecx, byte [ebp + ecx - 0x48]
add dl, dl
add dl, dl
movzx edx, dl
mov byte [ebx + edi*4 + 1], cl
movzx ecx, byte [ebp + edx - 0x48]
mov byte [ebx + edi*4 + 2], cl
mov byte [ebx + edi*4 + 3], al
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov byte [ebx + eax], 0
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x415320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415392
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x415361
cmp eax, 2
jne 0x41537c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x41538c
test eax, eax
je 0x415387
test al, 1
jne 0x41537c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41538c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x415de0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0051d7f0
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x415eb9
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.0051d250
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x415eb9
cmp eax, 0x1fff
ja 0x415eb9
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415ea6
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x560120
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415ea6
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret

Function at 0x416740
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x416780
mov eax, dword [esi + 0xc]
push 0x7d0
push eax
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41676f
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov al, 1
pop esi
ret