joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47965f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xf0], 0
lea ebx, [esi + 0xf0]
je 0x4797eb
mov eax, dword [esi + 0x3c]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x479610
mov eax, dword [eax + 4]
push 0
push eax
call edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x47961f
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
mov eax, dword [esi + 0x34]
test eax, eax
je 0x47962e
mov edx, dword [eax + 4]
push 0
push edx
call edi
mov eax, dword [esi + 0x38]
test eax, eax
je 0x47963d
mov eax, dword [eax + 4]
push 0
push eax
call edi
mov eax, dword [esi + 0x58]
test eax, eax
je 0x47964c
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x479658
jmp dword [eax*4 + 0x4797f4]
cmp dword [esi + 0x1ec], 0
jne 0x479691
mov edx, dword [esi + 0x138]
mov eax, dword [esi + 0x13c]
push 0
push edx
push eax
mov ecx, ebx
call fcn.00461df0
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + 4]
push 0
push edx
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 4]
push 5
push ecx
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp dword [ebx], 0
je 0x4796bf
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x15c]
push 0
push edx
push eax
mov ecx, ebx
call fcn.00461df0
cmp dword [esi + 0x1f0], 0
mov eax, dword [esi + 0x30]
jne 0x4796f4
test eax, eax
je 0x4797ea
mov ecx, dword [eax + 4]
push 5
push ecx
call edi
mov ecx, dword [esi + 0x30]
call fcn.004ac6c0
pop edi
mov dword [esi + 0x1f0], 1
pop esi
pop ebx
pop ebp
ret 4
test eax, eax
je 0x479700
mov edx, dword [eax + 4]
push 5
push edx
call edi
cmp dword [esi + 0x1f0], 2
jne 0x4797ea
mov ecx, esi
call fcn.00466270
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x164]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.00461df0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x479741
mov edx, dword [eax + 4]
push 5
push edx
call edi
cmp dword [esi + 0x1f4], 0
jne 0x4797ea
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x1f4], 1
call fcn.004ac6c0
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x168]
mov ecx, dword [esi + 0x16c]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.00461df0
cmp dword [esi + 0x1f8], 0
jne 0x4797a4
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x479796
mov edx, dword [eax + 4]
push 5
push edx
call edi
mov ecx, esi
call fcn.00478820
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4797b3
mov eax, dword [eax + 4]
push 5
push eax
call edi
cmp dword [esi + 0x1f8], 2
mov ecx, esi
jne 0x4797cc
push 1
call fcn.00466360
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
call fcn.00466360
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [ebx]
push 0
push 0x52a4dc
push ecx
call dword [sym.imp.htmlayout.dll_HTMLayoutSetElementInnerText16]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4806b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x4806e3
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 2
jne 0x4806db
push 0
lea edx, [ebp - 8]
push edx
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 1
call edi
test eax, eax
je 0x4806db
cmp dword [ebp - 8], 2
jne 0x4806db
movzx ecx, word [ebp + 0xc]
push 0
lea edx, [ebp - 8]
push edx
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], ecx
call edi
test eax, eax
je 0x4806db
xor eax, eax
cmp dword [ebp - 8], 2
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x480740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x4808c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push esi
xor esi, esi
test ecx, ecx
jbe 0x480799
add eax, 0x1c
cmp dword [eax - 0x14], 0x20
ja 0x480791
mov edx, dword [eax]
cmp word [edx + 0xe], 8
jbe 0x480791
inc esi
add eax, 0x20
sub ecx, 1
jne 0x480781
push esi
push edi
call fcn.004806b0
add esp, 8
test eax, eax
jne 0x4807b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
shl esi, 4
push ebx
add esi, 6
xor ebx, ebx
mov edi, esi
cmp dword [eax + 4], ebx
jbe 0x48085c
lea esi, [eax + 0x1c]
cmp dword [esi - 0x14], 0x20
ja 0x48084f
mov ecx, dword [esi]
cmp word [ecx + 0xe], 8
jbe 0x48084f
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [ebp - 0x17], al
mov eax, ecx
mov byte [ebp - 0x18], dl
mov byte [ebp - 0x15], 0
mov dx, word [eax + 0xc]
mov word [ebp - 0x14], dx
mov ax, word [eax + 0xe]
movzx ecx, ax
movzx edx, dx
imul ecx, edx
cmp ecx, 8
mov word [ebp - 0x12], ax
jl 0x480815
mov byte [ebp - 0x16], 0
jmp 0x48081c
mov al, 1
shl al, cl
mov byte [ebp - 0x16], al
mov ecx, dword [esi - 4]
push 0
lea edx, [ebp - 4]
push edx
push 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
push eax
push ecx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4808be
cmp dword [ebp - 4], 0x10
jne 0x4808be
add edi, dword [esi - 4]
mov eax, dword [ebp + 8]
inc ebx
add esi, 0x20
cmp ebx, dword [eax + 4]
jb 0x4807d0
xor edi, edi
cmp dword [eax + 4], edi
jbe 0x4808b4
lea esi, [eax + 0x1c]
cmp dword [esi - 0x14], 0x20
mov eax, dword [esi]
mov ebx, dword [eax + 0x14]
ja 0x4808a3
cmp word [eax + 0xe], 8
jbe 0x4808a3
push 0
mov dword [eax + 0x14], 0
mov eax, dword [esi - 4]
mov ecx, dword [esi - 8]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4808be
mov eax, dword [ebp - 4]
cmp eax, dword [esi - 4]
jne 0x4808be
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
inc edi
mov dword [ecx + 0x14], ebx
add esi, 0x20
cmp edi, dword [edx + 4]
jb 0x480866
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x480960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x480980
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x541968]
mov eax, dword [0x541964]
mov dword [ebp - 0xc], ecx
cmp eax, ecx
jbe 0x4809a2
call fcn.004eaba2
mov ecx, dword [0x541968]
mov eax, dword [0x541964]
push esi
mov esi, dword [0x541958]
push edi
mov edi, eax
cmp eax, ecx
jbe 0x4809b5
call fcn.004eaba2
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x541958]
push ecx
push esi
push edi
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x541958
call fcn.00497ba0
push 0
push 0x480910
push 0xe
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
je 0x480b2a
mov eax, dword [0x541968]
sub eax, dword [0x541964]
sar eax, 2
test eax, eax
je 0x480b2a
ja 0x480a05
call fcn.004eaba2
mov ecx, dword [0x541964]
mov eax, dword [ecx]
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x480b2a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x480b2a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x480b2a
movzx edx, word [edi + 4]
dec edx
shl edx, 5
add edx, 0x28
push edx
call fcn.004eb1f9
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x480b2a
movzx eax, word [edi + 4]
mov dword [esi + 4], eax
mov dword [ebp - 0xc], 0
test eax, eax
jbe 0x480afa
add esi, 0x14
add edi, 0x12
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
push 3
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x480b15
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x480b1b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [esi + 4], eax
call fcn.004eb1f9
mov edx, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi]
push eax
push ecx
call fcn.004ec470
lea edx, [esi - 0xc]
push edx
call fcn.00480630
mov ecx, dword [ebp - 4]
add esp, 0x10
test eax, eax
je 0x480b21
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0xe
inc eax
add esi, 0x20
mov dword [ebp - 0xc], eax
cmp eax, dword [ecx + 4]
jb 0x480a80
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.00480740
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
jmp 0x480b22
mov eax, dword [ebp - 4]
push eax
jmp 0x480b22
push ecx
call fcn.004ea5c2
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4815c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2078
call fcn.004eba30
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, 0x1c
mov esi, str._USERPROFILE_Application_DataMozillaFirefoxProfiles
lea edi, [ebp - 0x74]
mov dword [ebp - 0x2078], 1
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
jne 0x48160f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
push 0x1000
lea eax, [ebp - 0x2074]
push eax
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x2074]
push ebx
push edx
call fcn.004810d0
add esp, 8
test eax, eax
jne 0x4815fa
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2078]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
Function at 0x481f00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x481fa8
push edi
lea edi, [esi + 0x24]
push 0
mov ecx, edi
call fcn.004bd4f0
test al, al
jne 0x481f8a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.004ea4e0
mov byte [eax], 0
mov edx, dword [esi + 4]
push edx
lea eax, [ebp - 0x20c]
push eax
push str._sMagicSet.exe__d
mov ecx, eax
push 0x208
push ecx
call fcn.004ea58a
add esp, 0x1c
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.004bd780
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4

Function at 0x4827f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x482898
push edi
lea edi, [esi + 0x24]
push 0
mov ecx, edi
call fcn.004bd4f0
test al, al
jne 0x48287a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.004ea4e0
mov byte [eax], 0
mov edx, dword [esi + 4]
push edx
lea eax, [ebp - 0x20c]
push eax
push str._sSrRegBackup.exe__d
mov ecx, eax
push 0x208
push ecx
call fcn.004ea58a
add esp, 0x1c
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.004bd780
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
Function at 0x484010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x484029
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x484033
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x484690
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [ebp - 0x210]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x20c]
mov esi, eax
cmp esi, edi
jne 0x484711
xor eax, eax
cmp ecx, edi
je 0x4846f9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x208], edi
mov esi, eax
mov dword [ebp - 0x20c], ecx
cmp eax, edi
je 0x48471f
cmp ecx, edi
je 0x4847e0
push ecx
jmp 0x4847da
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x204]
push eax
push edi
push ecx
mov dword [ebp - 0x214], 0x100
call esi
test eax, eax
jne 0x4847a0
nop
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00484690
mov dword [ebp - 0x210], eax
cmp eax, edi
jne 0x4847f5
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x20c]
push edi
push edi
push edi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call esi
test eax, eax
je 0x484750
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x4847b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20c], edi
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [ebp - 0x208], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x4847e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x20c]
cmp ecx, edi
je 0x4847e2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
Function at 0x486580
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004eb2d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4865ed
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x4865dd
cmp eax, 4
jne 0x4865ed
cmp dword [ebp - 0x110], 0x5a
jb 0x4865ed
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret

Function at 0x487ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x53f4a0]
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
xor edx, edx
push 2
push edx
push eax
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x408], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x487b05
call fcn.00468bb0
mov esi, eax
jmp 0x487be4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x487b1e
call fcn.00468bb0
jmp 0x487bdb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x487b36
call fcn.00468bb0
jmp 0x487bdb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x487b83
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x487b60
lea ecx, [ebp - 0x408]
call fcn.00484630
lea ecx, [ebp - 0x40c]
call fcn.004608f0
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.00484e10
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x487ba0
mov esi, 0x8007000e
jmp 0x487bdd
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x487bb9
call fcn.00468bb0
jmp 0x487bdb
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 - 0x414]
call fcn.00487700
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x487c00
lea ecx, [ebp - 0x408]
call fcn.00484630
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48d280
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x170]
push edi
test eax, eax
je 0x48d297
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x48d2a7
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x48d2b1
push eax
call edi
cmp dword [esi], 0
je 0x48d2cc
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x48d2c7
mov eax, dword [esi + 0x70]
test eax, eax
je 0x48d2c7
push eax
call ecx
mov eax, dword [esi]
push eax
call edi
cmp dword [esi + 4], 0
je 0x48d2ec
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x48d2e6
mov eax, dword [esi + 0x74]
test eax, eax
je 0x48d2e6
push eax
call ecx
mov ecx, dword [esi + 4]
push ecx
call edi
cmp dword [esi + 8], 0
je 0x48d30f
mov ecx, dword [esi + 0x10c]
test ecx, ecx
je 0x48d309
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x48d309
push eax
call ecx
mov edx, dword [esi + 8]
push edx
call edi
pop edi
pop esi
ret
Function at 0x48df50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x110]
push edi
xor edi, edi
test eax, eax
je 0x48df83
cmp dword [esi + 0xcc], 8
jb 0x48df71
mov ecx, dword [esi + 0xb8]
jmp 0x48df77
lea ecx, [esi + 0xb8]
push ecx
mov ecx, dword [esi + 0xb0]
push ecx
call eax
mov edi, eax
cmp dword [esi + 0xcc], 8
jb 0x48df94
mov esi, dword [esi + 0xb8]
jmp 0x48df9a
add esi, 0xb8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, edi
je 0x48dfaf
mov byte [0x542510], 1
pop edi
pop esi
ret

Function at 0x48e3a0
Capabilities:
Check if file exists
Create process on windows
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xcc], 8
jb 0x48e3b7
mov eax, dword [esi + 0xb8]
jmp 0x48e3bd
lea eax, [esi + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48e418
cmp dword [esi + 0x104], 8
jb 0x48e3da
mov eax, dword [esi + 0xf0]
jmp 0x48e3e0
lea eax, [esi + 0xf0]
cmp dword [esi + 0xe8], 8
jb 0x48e3f1
mov esi, dword [esi + 0xd4]
jmp 0x48e3f7
add esi, 0xd4
push 0
push 0
push eax
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [0x542510], 1
xor eax, eax
pop esi
pop ebp
ret 4
cmp dword [ebp + 8], 0
jne 0x48e432
push 0
push 0
push esi
push 0x48e250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x492300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x170], 0
mov dword [ebp - 4], 0
jne 0x492348
cmp dword [ebp + 8], 0
jne 0x492357
push 0
push 0
push edi
push 0x492240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x12c
mov dword [edi + 0x170], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49234e
cmp dword [ebp + 8], 0
jne 0x492357
mov eax, dword [edi + 0x174]
mov dword [ebp + 8], eax
lea esi, [edi + 0x1c8]
mov dword [edi + 0x17c], 1
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
cmp dword [esi + 0xc], eax
jbe 0x492377
call fcn.004eaba2
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [ebp - 0x10], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x492389
call fcn.004eaba2
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
push edx
push ecx
push ebx
push eax
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
call fcn.0048fe30
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4923d2
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x70]
push ecx
push edx
call eax
test eax, eax
je 0x4923d2
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
lea ebx, [edi + 0x198]
mov dword [edi + 0x17c], 6
mov eax, dword [ebx + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebx + 0xc], eax
jbe 0x4923f2
call fcn.004eaba2
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
cmp esi, dword [ebx + 0x10]
jbe 0x492404
call fcn.004eaba2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx]
push ecx
push edx
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0048fda0
mov eax, dword [edi + 0x190]
lea esi, [edi + 0x180]
mov dword [ebp - 0xc], eax
cmp dword [esi + 0xc], eax
jbe 0x492434
call fcn.004eaba2
mov ecx, dword [esi]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 8], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x49244c
call fcn.004eaba2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
push edx
mov edx, dword [ebp - 0x18]
push edx
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0048fda0
mov eax, dword [edi + 0x11c]
test eax, eax
je 0x4924b8
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0xb0]
push ecx
push edx
call eax
test eax, eax
je 0x4924b8
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [ebp - 4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4