joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae8b8
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, edx
lea eax, [ebp - 0x48]
mov ecx, 0x36
mov edx, 0x40
call fcn.004037dc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, 0x40
call fcn.0042ce60
test eax, eax
jle 0x4ae905
mov esi, 1
lea edx, [ebp - 0x48]
mov ecx, dword [ebp - 8]
add ecx, esi
dec ecx
mov cl, byte [ecx]
xor byte [edx], cl
inc esi
inc edx
dec eax
jne 0x4ae8f6
mov eax, dword [ebx]
call fcn.004042a8
xor eax, eax
mov dword [ebx], eax
mov dl, 1
mov eax, dword [0x4ae228]
call fcn.004ae2cc
mov dword [ebx], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebx]
mov ecx, 0x40
mov ebx, dword [eax]
call dword [ebx + 8]
lea eax, [ebp - 0x48]
mov ecx, 0x5c
mov edx, 0x40
call fcn.004037dc
mov edx, dword [ebp + 8]
mov eax, 0x40
call fcn.0042ce60
test eax, eax
jle 0x4ae967
mov esi, 1
lea edx, [ebp - 0x48]
mov ecx, dword [ebp - 8]
add ecx, esi
dec ecx
mov cl, byte [ecx]
xor byte [edx], cl
inc esi
inc edx
dec eax
jne 0x4ae958
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004042a8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
mov dl, 1
mov eax, dword [0x4ae228]
call fcn.004ae2cc
mov edx, dword [ebp - 4]
mov dword [edx], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, 0x40
mov ebx, dword [eax]
call dword [ebx + 8]
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x40
call fcn.004037dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b3b3c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push ecx
mov dword [esp], edx
test ecx, ecx
jle 0x4b3b67
mov edx, dword [esp]
mov dl, byte [edx]
inc dword [esp]
mov ebx, eax
and bl, 0xff
xor dl, bl
shr eax, 8
and edx, 0xff
xor eax, dword [edx*4 + 0x4dc204]
dec ecx
jne 0x4b3b45
pop edx
pop ebx
ret
Function at 0x4b6130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebp, edx
mov ebx, eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp], eax
call fcn.004b5d78
test al, al
jne 0x4b615b
push ebp
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp], eax
jmp 0x4b61d1
test ebx, ebx
je 0x4b61d1
lea eax, [ebx + 0x3c]
mov eax, dword [eax]
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x78]
add eax, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov edi, dword [eax + 0x18]
dec edi
test edi, edi
jl 0x4b61ca
inc edi
xor esi, esi
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x20]
add eax, ebx
mov eax, dword [eax + esi*4]
add eax, ebx
mov edx, ebp
call fcn.0040ad54
test eax, eax
jne 0x4b61c6
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x24]
add eax, ebx
movsx eax, word [eax + esi*2]
mov edx, dword [esp + 8]
mov edx, dword [edx + 0x1c]
add edx, ebx
mov eax, dword [edx + eax*4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, ebx
mov dword [esp + 0xc], eax
inc esi
dec edi
jne 0x4b6186
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cf7a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4cf7d8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4cf7b6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4cf7c5
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4cf7d4
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4d3ea8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
xor edx, edx
mov eax, dword [0x4dfdc0]
call fcn.0041b5f0
pop ebp
ret
Function at 0x4425c8
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00442778
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4426c6
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x442669
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4426ac
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x442680
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x44269b
test al, 0x40
je 0x442692
mov ecx, dword [edi + 0x20]
jmp 0x442699
test al, 0x80
je 0x4426ac
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4426ac
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x442638
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
push edi
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, dword [esp + 0x28]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4190b0
push 0x67
push esi
call edi
push 0x64
push 0x418fe8
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401110
push 0
push esi
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push 0xcf0000
push 0x4190b0
push 0x418fe8
push 0
mov dword [0x419178], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4010ff
mov eax, dword [esp + 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
call edi
test eax, eax
je 0x4010ed
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x4010da
lea ecx, [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x4010b7
pop ebp
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
Function at 0x401950
Capabilities:
Get file version info

Disassembly:
sub esp, 0x14
cmp eax, 3
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
je 0x40196d
push eax
call fcn.00401af0
add esp, 4
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x401986
pop edi
pop esi
add esp, 0x14
ret 4
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push ebx
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.0040681b
mov ebp, eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040681b
add esp, 8
test ebp, ebp
mov ebx, eax
je 0x4019e1
test ebx, ebx
je 0x4019e1
mov eax, dword [esp + 0x14]
push ebp
push esi
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4019ed
push ebp
call fcn.004069de
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x414058
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401a18
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add edi, 0xc
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x41405c
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x10]
shr edx, 2
xor esi, esi
test edx, edx
jle 0x401a8b
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push str.FileVersion
push ecx
push edx
push str.StringFileInfo_04x_04x_s
mov eax, 0x32
mov edi, ebx
call fcn.00401cd0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x401aaa
mov edx, dword [esp + 0x10]
add esi, 1
shr edx, 2
cmp esi, edx
jl 0x401a40
mov edi, dword [esp + 0x28]
push ebp
call fcn.004069de
push ebx
call fcn.004069de
add esp, 8
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret 4
push 0x190
call fcn.0040681b
mov edx, dword [esp + 0x24]
add esp, 4
mov edi, eax
mov esi, 0xc8
movzx ecx, word [edx]
test cx, cx
je 0x401ae2
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x401ac2
sub eax, 2
mov word [eax], 0
jmp 0x401a8f
test esi, esi
jne 0x401ae9
sub eax, 2
mov word [eax], 0
jmp 0x401a8f
Function at 0x401af0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4170a0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
cmp eax, 3
push esi
ja case.default.0x401b11
jmp dword [eax*4 + 0x401c20]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x401ba2
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004069e3
add esp, 0x20c
ret
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x401b28
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x401b28
lea eax, [esp + 4]
mov esi, 0x4140c8
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ebx, [ebx]
movzx ecx, word [esi + eax]
test cx, cx
je 0x401b96
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401b80
jmp 0x401b9a
test edx, edx
jne 0x401b9d
sub eax, 2
mov word [eax], 0
push 0x414058
lea esi, [esp + 8]
call fcn.00401c30
push edi
call fcn.00401c30
mov edx, 0x104
mov eax, edi
sub esi, edi
nop
movzx ecx, word [esi + eax]
test cx, cx
je 0x401bf7
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401bc0
sub eax, 2
mov word [eax], 0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004069e3
add esp, 0x20c
ret
test edx, edx
jne 0x401bfe
sub eax, 2
mov ecx, dword [esp + 0x20c]
pop esi
mov word [eax], 0
xor ecx, esp
mov eax, 1
call fcn.004069e3
add esp, 0x20c
ret

Function at 0x401d30
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4170a0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x104
push 0
push 0x419180
call fcn.004077e0
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.004077e0
add esp, 0x18
push 0x104
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrIW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov word [eax], 0
push 0x414058
lea eax, [esp + 8]
push eax
call esi
push str.partnercol.ini
lea ecx, [esp + 8]
push ecx
call esi
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x401ddc
xor al, al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004069e3
add esp, 0x20c
ret
lea eax, [esp]
push eax
push 0x104
push 0x419180
push str.url_name
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push 0x419180
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x208]
test eax, eax
setne al
xor ecx, esp
call fcn.004069e3
add esp, 0x20c
ret
Function at 0x402a30
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x402a4e
pop esi
xor al, al
pop ebp
add esp, 8
ret
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x402a67
pop ebx
pop esi
xor al, al
pop ebp
add esp, 8
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402ad3
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call fcn.004038c0
mov ecx, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea edx, [esp + 0x18]
push edx
push ebp
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402add
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ad3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop ebx
pop esi
xor al, al
pop ebp
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 8
ret
Function at 0x4036e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4170a0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push edi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004077e0
add esp, 0xc
xor ebx, ebx
xor edi, edi
call fcn.00404920
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
imul edx, edx, 0x34
lea ecx, [ecx + ecx*8]
mov ecx, dword [ecx*4 + 0x4180d8]
add ecx, edx
mov edx, dword [ecx + 0x20]
cmp edx, 0xffffffff
je 0x40377c
cmp dword [ecx + 0x24], eax
jg 0x403739
cmp edx, eax
jge 0x40377c
cmp dword [esi + 0x28], ebx
je 0x40374b
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
imul edx, edx, 0x34
lea ecx, [eax + eax*8]
mov eax, dword [ecx*4 + 0x4180d8]
pop edi
mov byte [eax + edx + 0x30], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004069e3
add esp, 0x20c
ret
mov ecx, dword [0x419178]
push 0
push 0x405720
push 0
push 0xae
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
mov dword [0x4196bc], eax
je 0x4037a9
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x20]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x24]
mov ecx, dword [edx*4 + 0x4180d8]
imul eax, eax, 0x34
mov edx, dword [eax + ecx + 0x18]
add eax, ecx
mov ecx, dword [eax + 0x14]
push ebp
push edx
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x18]
call fcn.00404ba0
xor ecx, ecx
add esp, 0xc
test eax, eax
setge cl
sub ecx, 1
and ecx, 0x80004005
mov ebp, ecx
jl 0x40387c
mov eax, dword [esi + 0x20]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x24]
mov ecx, dword [edx*4 + 0x4180d8]
imul eax, eax, 0x34
cmp dword [ecx + eax + 0x18], 0x90
jne 0x403814
mov byte [0x41917d], 1
mov eax, dword [0x4196bc]
test eax, eax
je 0x403824
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x24]
imul eax, eax, 0x34
add ecx, ecx
mov edx, dword [ecx + ecx + 0x4180d8]
add ecx, ecx
add edx, eax
cmp byte [edx + 0x29], bl
je 0x40387c
cmp byte [edx + 0x2a], bl
lea edi, [esp + 0xc]
jne 0x403858
mov ebx, dword [ecx + 0x4180ec]
call fcn.00404df0
jmp 0x40387c
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + ecx*8]
add ecx, ecx
mov edx, dword [ecx + ecx + 0x4180ec]
add ecx, ecx
mov ecx, dword [ecx + 0x4180d8]
mov ebx, dword [ecx + eax + 0x2c]
push edx
call fcn.00404ca0
add esp, 4
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
imul ecx, ecx, 0x34
lea edx, [eax + eax*8]
mov eax, dword [edx*4 + 0x4180d8]
mov al, byte [eax + ecx + 0x28]
mov ecx, dword [esp + 0x214]
neg al
sbb eax, eax
and eax, ebp
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.004069e3
add esp, 0x20c
ret
Function at 0x403d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403d17
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403d48
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403d44
cmp esi, eax
jae 0x403d48
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403d34
cmp esi, eax
jb 0x403d4e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403e20
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
test byte [esi + 0x18], 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
je 0x403e6f
cmp dword [esi + 0xc], 0
jne 0x403e6f
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0xc], eax
jne 0x403e6f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x403e57
call esi
jmp 0x403e63
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x403ecc
pop edi
mov eax, 0x80004005
pop esi
ret
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x403e47
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x403ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
je 0x403e47
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test byte [esi + 0x18], 2
je 0x403eca
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x404920
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4170a0]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x41802c]
test eax, eax
jge 0x404a43
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.004077e0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x404998
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x404998
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004069e3
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x404a33
sub eax, 1
je 0x404a27
sub eax, 1
jne 0x404a3d
mov eax, dword [esp + 8]
cmp eax, 6
mov dword [0x41802c], 4
jb 0x4049de
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [0x41802c], 0
mov dword [ebx], ecx
jmp 0x404a3d
cmp eax, 5
jne 0x404a3d
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x4049f8
mov dword [0x41802c], 1
jmp 0x404a3d
cmp eax, 1
jne 0x404a3d
push str.Service_Pack_2
lea edx, [esp + 0x1c]
push edx
mov dword [0x41802c], 3
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jl 0x404a3d
mov dword [0x41802c], 2
jmp 0x404a3d
mov dword [0x41802c], 5
jmp 0x404a3d
mov dword [0x41802c], 6
mov eax, dword [0x41802c]
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004069e3
add esp, 0x120
ret
Function at 0x404a60
Capabilities:
Get token membership

Disassembly:
push 0xffffffffffffffff
push 0x41162e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4170a0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x4170a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 1
test byte [0x4198f8], al
mov dword [esp + 0xc], ebx
jne 0x404aee
or dword [0x4198f8], eax
xor eax, eax
mov dword [esp + 0x28], ebx
mov ecx, 0x4198e0
mov dword [0x4198e0], eax
mov dword [0x4198e4], eax
mov dword [0x4198e8], eax
mov dword [0x4198ec], eax
mov dword [0x4198f0], eax
mov dword [0x4198f4], eax
call fcn.00405030
cmp eax, ebx
jge 0x404ae1
push eax
call fcn.00403e00
push 0x4118f0
call fcn.004072f1
add esp, 4
push 0x4198e0
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov esi, eax
cmp esi, ebx
jl 0x404b56
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
cmp esi, ebx
jge 0x404b56
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404b65
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0xc], ebx
push 0x4198e0
je 0x404b7a
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x404b82
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004069e3
add esp, 0x20
ret
Function at 0x404ba0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov esi, eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x14]
push eax
call fcn.00401c30
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 2
push 0x1f01ff
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404bef
pop edi
mov eax, 0x80004005
pop esi
add esp, 8
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esp + 0x20]
movzx edx, word [esp + 0x24]
push ecx
mov ebx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x404c40
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x404c40
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x404c40
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x404c5b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebp
pop ebx
pop edi
mov eax, 0x80004005
pop esi
add esp, 8
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret