joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x128]
mov dword [ebp - 0x438], ecx
lea eax, [esi + 0x28]
mov dword [ebp - 0x43c], eax
lea ecx, [esi + 0x23c]
mov dword [ebp - 0x42c], ecx
lea edx, [esi + 0x228]
mov dword [ebp - 0x434], edx
lea eax, [esi + 0x232]
mov dword [ebp - 0x430], eax
lea ecx, [esi + 0x3aa]
lea edx, [esi + 0x33c]
lea eax, [esi + 0x346]
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], eax
lea ecx, [esi + 0x7be]
lea edx, [esi + 0x3be]
lea eax, [esi + 0x5be]
push 0x3ff
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x418], eax
lea ecx, [ebp - 0x403]
lea edx, [esi + 0x9be]
lea eax, [esi + 0xbbe]
push 0
push ecx
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x40c], eax
mov byte [ebp - 0x404], 0
call fcn.004391a0
push 0xdbe
push 0
push esi
call fcn.004391a0
add esp, 0x18
xor ebx, ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x40d849
push eax
push 4
lea edx, [ebp - 0x408]
push 1
push edx
call fcn.0043be76
mov esi, eax
mov eax, dword [edi + 4]
push eax
call fcn.0043bfc7
add esp, 0x14
test eax, eax
jne 0x40d849
cmp esi, 0xffffffff
je 0x40d849
mov ecx, dword [ebp - 0x408]
test ecx, ecx
jle 0x40d82a
mov eax, dword [edi + 4]
test eax, eax
je 0x40d849
push eax
push ecx
lea ecx, [ebp - 0x404]
push 1
push ecx
call fcn.0043be76
mov edx, dword [edi + 4]
push edx
mov esi, eax
call fcn.0043bfc7
add esp, 0x14
test eax, eax
jne 0x40d849
cmp esi, 0xffffffff
je 0x40d849
mov eax, dword [ebp + ebx*4 - 0x440]
push eax
mov eax, dword [ebp - 0x408]
lea ecx, [ebp - 0x404]
push ecx
call fcn.0040e030
add esp, 8
inc ebx
cmp ebx, 0xe
jb 0x40d7a2
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438fc8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00438fc8
mov esp, ebp
pop ebp
ret
Function at 0x40d860
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x28]
lea edx, [eax + 0x128]
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x43c], edx
lea ecx, [eax + 0x228]
lea edx, [eax + 0x232]
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], edx
lea ecx, [eax + 0x23c]
lea edx, [eax + 0x33c]
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x42c], edx
lea ecx, [eax + 0x346]
lea edx, [eax + 0x3aa]
mov dword [ebp - 0x428], ecx
lea ecx, [eax + 0x3be]
mov dword [ebp - 0x424], edx
lea edx, [eax + 0x5be]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x420], ecx
lea ecx, [eax + 0x7be]
mov dword [ebp - 0x41c], edx
lea edx, [eax + 0x9be]
add eax, 0xbbe
push 0x3ff
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x403]
push 0
push eax
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], edx
mov byte [ebp - 0x404], 0
call fcn.004391a0
add esp, 0xc
push esi
mov dword [ebp - 0x408], 0
push edi
lea ecx, [ecx]
mov ecx, dword [ebp - 0x408]
mov edi, dword [ebp + ecx*4 - 0x444]
push 0
push 0x45f178
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0x45f178
mov esi, eax
push esi
lea edx, [ebp - 0x404]
push edx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
test esi, esi
jle 0x40d99d
lea esp, [esp]
xor byte [ebp + eax - 0x404], 0xc
inc eax
cmp eax, esi
jl 0x40d990
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40c], esi
test eax, eax
je 0x40da3b
push eax
push 4
lea eax, [ebp - 0x40c]
push 1
push eax
call fcn.0043d36b
mov ecx, dword [ebx + 4]
push ecx
mov esi, eax
call fcn.0043bfc7
add esp, 0x14
test eax, eax
jne 0x40da3b
cmp esi, 0xffffffff
je 0x40da3b
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
jle 0x40da0e
mov eax, dword [ebx + 4]
test eax, eax
je 0x40da3b
push eax
push ecx
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.0043d36b
mov esi, eax
mov eax, dword [ebx + 4]
push eax
call fcn.0043bfc7
add esp, 0x14
test eax, eax
jne 0x40da3b
cmp esi, 0xffffffff
je 0x40da3b
mov eax, dword [ebp - 0x408]
inc eax
mov dword [ebp - 0x408], eax
cmp eax, 0xe
jb 0x40d940
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438fc8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00438fc8
mov esp, ebp
pop ebp
ret 4

Function at 0x40dd20
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov esi, eax
mov eax, dword [esi + 4]
push 2
push 0
push eax
call fcn.0043c272
mov ecx, dword [esi + 4]
push ecx
call fcn.0043c183
mov edx, dword [esi + 4]
push edx
mov edi, eax
call fcn.0043d156
push edi
call fcn.00437584
add esp, 0x18
mov dword [ebx], eax
test eax, eax
jne 0x40dd57
pop edi
pop esi
ret
mov ecx, dword [esi + 4]
push ecx
push edi
push 1
push eax
call fcn.0043be76
mov esi, eax
add esp, 0x10
cmp esi, edi
je 0x40dd80
mov eax, dword [ebx]
xor esi, esi
test eax, eax
je 0x40dd7e
push eax
call fcn.0043921a
add esp, 4
mov dword [ebx], esi
pop edi
mov eax, esi
pop esi
ret
Function at 0x40e030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.00437584
mov esi, eax
add esp, 4
test esi, esi
jne 0x40e04f
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
push 0
push esi
call fcn.004391a0
add esp, 0xc
test edi, edi
jle 0x40e072
mov ecx, dword [ebp + 8]
mov eax, esi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0xc
mov byte [eax], dl
inc eax
dec edi
jne 0x40e066
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov edi, eax
mov eax, dword [ebp + 0xc]
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
push esi
call fcn.0043921a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40e0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e148
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
push 0x45f1dc
push ecx
mov dword [ebp - 0x410], 1
mov dword [ebp - 0x40c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e13b
lea edx, [ebp - 0x404]
mov eax, 0x20
mov ecx, 0x46a6b0
call fcn.004093f0
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438fc8
mov esp, ebp
pop ebp
ret

Function at 0x40e1c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00439bd0
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1ffe
push eax
lea ecx, [ebp - 0x2002]
push ecx
mov word [ebp - 0x2004], ax
call fcn.004391a0
add esp, 0xc
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x40e278
lea edx, [ebp - 0x2004]
push edx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e278
lea eax, [ebp - 0x200c]
push eax
lea ecx, [ebp - 0x2008]
push ecx
push 0x45ef4c
lea edx, [ebp - 0x2004]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e278
mov eax, dword [ebp - 0x2008]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
push 0x14
push edi
call fcn.00438fd7
add esp, 0x1c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438fc8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00438fc8
mov esp, ebp
pop ebp
ret
Function at 0x40e600
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
push str._IM__s__F
mov eax, 0x208
lea ebx, [ebp - 0x20c]
call fcn.0040ddd0
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.004391a0
add esp, 0x14
lea edx, [ebp - 0x248]
mov ecx, ebx
push edx
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x40
mov dword [ebp - 0x23c], str.open
mov dword [ebp - 0x238], str.taskkill
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp - 0x210]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00438fc8
mov esp, ebp
pop ebp
ret

Function at 0x40e6b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6c1
push ebx
sub eax, edx
push esi
sar eax, 1
push edi
mov edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.00439a65
mov ebx, eax
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x40e6f1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push edi
push ecx
inc edi
push edi
push ebx
call fcn.00439af9
add esp, 0x10
cmp word [ebx], 0
je 0x40e760
movzx eax, word [esi]
cmp eax, 0x2e
je 0x40e788
cmp eax, 0x5c
je 0x40e719
cmp eax, 0x2f
jne 0x40e727
movzx ecx, word [esi + 2]
cmp ecx, 0x5c
je 0x40e788
cmp ecx, 0x2f
je 0x40e788
cmp esi, ebx
je 0x40e743
cmp eax, 0x5c
je 0x40e735
cmp eax, 0x2f
jne 0x40e743
movzx ecx, word [esi - 2]
cmp ecx, 0x2e
je 0x40e788
cmp ecx, 0x3a
je 0x40e788
cmp eax, 0x5c
je 0x40e773
cmp eax, 0x2f
je 0x40e773
cmp word [esi + 2], 0
jne 0x40e788
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], eax
push ebx
call fcn.00439225
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
push edx
push ebx
mov edi, eax
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], eax
mov word [esi], di
add esi, 2
cmp word [esi], 0
jne 0x40e707
push ebx
call fcn.00439225
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411a00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4538c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x466eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.00439a65
add esp, 4
cmp eax, ebx
je 0x411aea
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
mov dword [ebp - 4], ebx
push 8
mov dword [edi], ebx
call fcn.00439a65
add esp, 4
cmp eax, ebx
je 0x411ac6
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov edx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov ax, word [edx]
mov word [esi + 0x7c], ax
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
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0043aee9
push 0x462984
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0043b1d2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.0043aee9
push 0x462984
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0043b1d2
int3
Function at 0x415ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x415ed3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x415f4d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00439c00
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x415f21
sub eax, edi
jmp 0x415f23
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x415f12
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x415f40
sub eax, edi
jmp 0x415f42
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x415f31
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x416002
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x415f73
mov ebx, ecx
test ebx, ebx
je 0x415fc6
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x415f95
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.004169f0
jmp 0x415fae
cmp eax, 2
jne 0x415fb4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x415fa7
xor eax, eax
jmp 0x415fb1
mov edx, ebx
call fcn.004159b0
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00439c00
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x415fee
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x416002
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x415ed0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a740
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.0041a010
mov edi, eax
cmp edi, ebx
je 0x41a7ba
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x41a7a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438fc8
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
jne 0x41a838
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0041a740
mov edi, eax
test edi, edi
jne 0x41a871
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
je 0x41a7f0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x41a853
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x41a89b
mov edx, dword [esi]
push edx
call fcn.00419de0
jmp 0x41a8a4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x41a7a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438fc8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x41a8b3
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438fc8
mov esp, ebp
pop ebp
ret 4
Function at 0x41de00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
movzx ecx, word [ebp + 8]
push edi
push eax
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41de21
pop edi
pop ebp
ret
push esi
push edi
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x41de51
push edi
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41de51
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x41de57
pop esi
xor eax, eax
pop edi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push eax
lea edx, [esi + 1]
push edx
mov ecx, ebx
call fcn.0041d5a0
push eax
call fcn.00439c00
add esp, 0xc
push esi
mov ecx, ebx
call fcn.00419310
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop esi
mov eax, 1
pop edi
pop ebp
ret

Function at 0x41ec20
Capabilities:
Check os version

Disassembly:
test byte [0x4692d8], 1
jne 0x41ece6
or dword [0x4692d8], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
xor edx, edx
cmp ecx, 5
jbe 0x41ec49
lea eax, [edx + 1]
jmp 0x41ec5a
jae 0x41ec4f
xor eax, eax
jmp 0x41ec5a
shr eax, 8
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
neg eax
sbb eax, eax
and eax, 0x20000
or eax, 0xb
push 0x48
mov dword [0x466284], eax
push edx
xor eax, eax
push 0x4662c4
mov dword [0x466288], 0x41d740
mov dword [0x46628c], edx
mov dword [0x466290], edx
mov dword [0x466294], edx
mov dword [0x466298], edx
mov dword [0x46629c], edx
mov dword [0x4662a0], 6
mov dword [0x4662a4], edx
mov dword [0x4662a8], edx
mov dword [0x4662ac], edx
mov dword [0x4662b0], edx
mov dword [0x4662b4], edx
mov dword [0x4662b8], 0x7f00
mov dword [0x4662bc], 1
mov dword [0x4662c0], eax
call fcn.004391a0
add esp, 0xc
mov eax, 0x466280
ret
Function at 0x41f020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40c], ecx
xor ecx, ecx
push 2
push ecx
push eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41f06f
call fcn.00419d20
mov esi, eax
jmp 0x41f116
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41f088
call fcn.00419d20
jmp 0x41f10d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x41f09d
call fcn.00419d20
jmp 0x41f10d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x41f0b5
mov esi, 0x8007000e
jmp 0x41f10f
push eax
lea ecx, [ebp - 0x408]
call fcn.0041c1f0
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x41f0d2
mov esi, 0x8007000e
jmp 0x41f10f
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41f0eb
call fcn.00419d20
jmp 0x41f10d
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x410]
call fcn.0041dc20
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x41f130
lea ecx, [ebp - 0x408]
call fcn.0041a6e0
nop
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438fc8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f750
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0041d220
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov ebx, dword [ebp + 0xc]
je 0x41f856
mov edx, dword [0x466c18]
mov eax, dword [edx + 0xc]
mov ecx, 0x466c18
call eax
add eax, 0x10
mov dword [ebp - 4], eax
call fcn.0041d220
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 4]
push str._s_d._s
push ecx
call fcn.0040f1d0
mov edx, dword [ebp - 4]
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f837
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x41f830
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [edi + 0xa]
push ecx
mov ecx, ebx
mov dword [ebp - 8], 0
call fcn.0041d5a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f81c
cmp dword [ebp - 8], edi
jne 0x41f81c
push edi
mov ecx, ebx
call fcn.00419310
lea ecx, [ebp - 4]
call fcn.00409de0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
cmp dword [eax - 8], 0
jl 0x41f86e
mov dword [eax - 0xc], 0
mov edx, dword [ebx]
mov byte [edx], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f856
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push ebx
push edx
call fcn.0041de00
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00409050
int3

Function at 0x424250
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x4242d1
mov eax, dword [ebp + 0xc]
cmp eax, 0xf
jne 0x424288
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x18]
push eax
push ecx
push edx
push 0xf
mov ecx, esi
call fcn.004240b0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop esi
pop ebp
ret 0x18
cmp eax, 1
je 0x4242be
cmp eax, 0x113
jne 0x4242d1
cmp dword [ebp + 0x10], 0x400
jne 0x4242be
mov eax, dword [esi + 4]
push 0x400
push eax
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [esi + 0x24], 0
jne 0x4242be
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x18]
mov dword [edx], 1
mov eax, 1
pop esi
pop ebp
ret 0x18
xor eax, eax
pop esi
pop ebp
ret 0x18