joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c80
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45ca83
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
push edi
mov eax, dword [0x4773f0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x6e]
mov dword [esp + 0x280], 0
push ecx
mov word [esp + 0x70], ax
call fcn.00446040
mov eax, dword [0x4a05a4]
add esp, 0xc
push 0x104
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...NetmSkin.exe
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408d4b
mov eax, dword [esp + 0x288]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4788a0]
je 0x408e80
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408e80
mov edx, dword [esp + 0x288]
add edx, 0xfffffff4
push edx
jmp 0x408e78
lea edi, [esp + 0x64]
call fcn.00402490
test eax, eax
je 0x408d13
push 0x40
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00446040
mov edx, dword [0x4788a4]
xor eax, eax
mov ecx, 5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x44
mov word [esp + 0x5c], cx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x290]
mov edx, dword [esp + 0x28c]
mov byte [esp + 0x284], 1
mov eax, dword [esp + 0x294]
push eax
push ecx
push edx
mov eax, edi
push eax
push str.__s___x_d__y_d__url_s
lea ecx, [esp + 0x2c]
call fcn.004021e0
add esp, 0x20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
call fcn.00402ca0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.00402a70
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [esi - 8], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x408e2d
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x4788a0]
je 0x408e51
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x408e51
push esi
call fcn.00443685
add esp, 4
mov eax, dword [esp + 0x288]
lea edx, [eax - 0xc]
cmp edx, dword [0x4788a0]
je 0x408e80
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x408e80
mov eax, dword [esp + 0x288]
add eax, 0xfffffff4
push eax
call fcn.00443685
add esp, 4
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0044331b
add esp, 0x270
ret
Function at 0x409150
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x45e57c
push 1
push 0
push 0x45e5ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x409207
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0
push eax
call edx
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x45e5fc
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x4091fb
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x409220
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45c1f6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov eax, dword [0x4773f0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x234], 1
call fcn.00446040
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [esp + 0x230]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.00402760
mov bl, 2
push str..lnk
lea esi, [esp + 0x14]
mov byte [esp + 0x22c], bl
call fcn.00409dc0
mov byte [esp + 0x228], 3
mov esi, dword [esp + 0x10]
mov edx, dword [esi - 8]
push esi
push edx
lea ecx, [esp + 0x14]
call fcn.004097a0
mov byte [esp + 0x228], bl
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, dword [0x4788a0]
je 0x409308
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x409308
push esi
call fcn.00443685
add esp, 4
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x234]
push esi
push ecx
push edi
call fcn.00409150
lea edx, [esi - 0xc]
add esp, 0xc
cmp edx, dword [0x4788a0]
je 0x40933c
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x40933c
push esi
call fcn.00443685
add esp, 4
mov eax, dword [esp + 0x230]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4788a0]
je 0x40936b
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40936b
mov edx, dword [esp + 0x230]
add edx, 0xfffffff4
push edx
call fcn.00443685
add esp, 4
mov eax, dword [esp + 0x234]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4788a0]
je 0x40939a
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40939a
mov edx, dword [esp + 0x234]
add edx, 0xfffffff4
push edx
call fcn.00443685
add esp, 4
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0044331b
add esp, 0x220
ret
Function at 0x4093c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x248
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4a]
push ecx
mov word [esp + 0x4c], ax
call fcn.00446040
xor edx, edx
push 0x3a
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00446040
lea eax, [esp + 0x1c]
mov esi, 0x469428
mov ecx, eax
add esp, 0x18
mov edx, 0x1e
sub esi, ecx
lea ecx, [edx + 0x7fffffe0]
test ecx, ecx
je 0x409435
movzx ecx, word [esi + eax]
test cx, cx
je 0x409435
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x409415
jmp 0x409439
test edx, edx
jne 0x40943c
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0x104
lea eax, [esp + 0x44]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1e
lea ecx, [esp + 8]
push ecx
push 1
lea edx, [esp + 0x4c]
push edx
push str.Local_SettingsSoftwareMicrosoftWindowsShellMuiCache
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [esp + 0x248]
pop esi
xor ecx, esp
call fcn.0044331b
add esp, 0x248
ret

Function at 0x409490
Capabilities:
Get file size

Disassembly:
push ecx
push esi
test edx, edx
je 0x4094ef
mov eax, edx
lea esi, [eax + 2]
jmp 0x4094a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4094a0
sub eax, esi
sar eax, 1
je 0x4094ef
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4094ef
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x409500
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x4a20b8]
test eax, eax
ja 0x409552
push 0x118
lea edx, [esp + 8]
push 0
push edx
call fcn.00446040
add esp, 0xc
lea eax, [esp]
push eax
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
sbb eax, eax
neg eax
inc eax
mov dword [0x4a20b8], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0044331b
add esp, 0x120
ret
Function at 0x40ab30
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
test edi, edi
je 0x40abf1
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40abf1
cmp dword [esi + 0x18], 0
je 0x40ab5b
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, 1
call fcn.00402260
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40ab71
pop ebx
pop edi
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46b4c4
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x18]
push str.CMD_SendMessage
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.CMD_SendMsgCopyData
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x18]
push str.CMD_LauchBrowser
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push str.CMD_DownloadNetmSkin
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.CMD_InstallLocalApk
push ecx
mov dword [esi + 0x10], eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x14], eax
je 0x40abe4
cmp dword [esi + 4], 0
je 0x40abe4
cmp dword [esi + 8], 0
je 0x40abe4
cmp dword [esi + 0xc], 0
je 0x40abe4
cmp dword [esi + 0x10], 0
jne 0x40abeb
xor ebx, ebx
call fcn.0040ac00
mov eax, ebx
pop ebx
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x40c770
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x45ca48
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4773f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 2
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [edi + 8]
cmp eax, ecx
je 0x40c7e6
cmp dword [eax - 0xc], 0
jge 0x40c7bf
add eax, 0xfffffff4
cmp eax, dword [0x4788a0]
jne 0x40c7c5
cmp dword [ecx - 0xc], 0
jge 0x40c7d3
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.004025c0
jmp 0x40c7e6
mov ecx, esi
call fcn.00402a30
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x20]
lea esi, [edi + 0xc]
cmp eax, ecx
je 0x40c82c
cmp dword [eax - 0xc], 0
jge 0x40c805
add eax, 0xfffffff4
cmp eax, dword [0x4788a0]
jne 0x40c80b
cmp dword [ecx - 0xc], 0
jge 0x40c819
push ecx
mov ecx, dword [ecx - 8]
push ecx
mov ecx, esi
call fcn.004025c0
jmp 0x40c82c
mov ecx, esi
call fcn.00402a30
mov eax, dword [esp + 0x20]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call ebx
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x24]
lea esi, [edi + 0x10]
cmp eax, ecx
je 0x40c872
cmp dword [eax - 0xc], 0
jge 0x40c84b
add eax, 0xfffffff4
cmp eax, dword [0x4788a0]
jne 0x40c851
cmp dword [ecx - 0xc], 0
jge 0x40c85f
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, esi
call fcn.004025c0
jmp 0x40c872
mov ecx, esi
call fcn.00402a30
mov eax, dword [esp + 0x24]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call ebx
push 0
push 0
push edi
push 0x40c530
push 0
push 0
call fcn.0044487e
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4788a0]
je 0x40c8be
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40c8be
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00443685
add esp, 4
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4788a0]
je 0x40c8e7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40c8e7
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00443685
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4788a0]
je 0x40c910
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40c910
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00443685
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40e2e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
jne 0x40e3dd
cmp eax, 1
jne 0x40e30d
call fcn.0040e550
mov dword [edi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x610
jne 0x40e327
call fcn.0040e5c0
mov dword [edi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x611
jne 0x40e341
call fcn.0040e610
mov dword [edi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x113
jne 0x40e394
cmp dword [ebp + 0xc], 0x258
jne 0x40e382
mov eax, dword [esi + 4]
push 0x258
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 4]
push 4
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0xa4]
push 0
push 0
push 0x4fa
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x10
je 0x40e382
cmp eax, 0x4a
jne 0x40e3dd
test edx, edx
je 0x40e3cb
cmp dword [edx], 0x317
jne 0x40e3cb
mov eax, dword [edx + 8]
xor ecx, ecx
test eax, eax
je 0x40e3b6
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0xa4]
push 0
push ecx
push 0xa6e
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi], 1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e5c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x2c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xa4]
mov dword [esi + 0xa8], 1
test eax, eax
je 0x40e606
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x4fa
push eax
call edi
mov ecx, dword [esi + 0xa4]
push 0
push 0
push 0x568
push ecx
call edi
pop edi
xor eax, eax
ret

Function at 0x417180
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
call fcn.00416bb0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [esi + 0x1f8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x4171db
push edi
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x27110000
push 0x4177f0
push 0
push 0
mov dword [esp + 0x24], 0
call fcn.0044487e
add esp, 0x18
mov edi, eax
push 0x3e8
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp dword [esi + 0x240], 0
je 0x4171f2
cmp dword [esi + 0x244], 1
jne 0x4171f2
call fcn.00415cb0
mov eax, dword [0x4a1248]
test eax, eax
je 0x417203
push 0x2710
push eax
call ebx
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x417c30
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x21c], 0xffffffff
jne 0x417c58
push 0
push 0
push esi
push 0x417ae0
push 0
push 0
call fcn.0044487e
add esp, 0x18
mov dword [esi + 0x21c], eax
mov esi, dword [esi + 0x228]
cmp esi, 0xffffffff
je 0x417c6a
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
ret
Function at 0x4193c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x534
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
mov ebx, dword [esp + 0x53c]
push ebp
push esi
push edi
push 0x11c
xor edi, edi
push edi
push ebx
call fcn.00446040
add esp, 0xc
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push 0x46c56c
lea eax, [eax + eax*4]
push str.ntdll
lea ebp, [ecx + eax*2]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x41947a
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x11c
call eax
test eax, eax
jl 0x41947a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*2]
cmp edx, ebp
jle 0x41946a
mov ecx, 0x47
lea esi, [esp + 0x14]
mov edi, ebx
mov dword [0x4a2524], 1
rep movsd dword es:[edi], dword [esi]
mov eax, 1
jmp 0x419559
mov dword [0x4a2524], edi
mov eax, 1
jmp 0x419559
push 0x40e
lea ecx, [esp + 0x136]
xor eax, eax
push edi
push ecx
mov word [esp + 0x13c], ax
call fcn.00446040
add esp, 0xc
lea edx, [esp + 0x130]
push edx
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x419557
push str._ntoskrnl.exe
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x419557
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x130]
push ecx
call esi
test eax, eax
je 0x419557
lea edx, [esp + 0x130]
push edx
mov dword [esp + 0x14], edi
call esi
test eax, eax
je 0x419557
lea edi, [esp + 0x10]
lea esi, [esp + 0x130]
call fcn.00419580
test eax, eax
je 0x419557
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0x12]
movzx edx, word [eax + 8]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2]
cmp ebp, ecx
jge 0x419546
movzx edx, word [eax + 0x12]
mov dword [ebx + 4], edx
movzx ecx, word [eax + 0x10]
mov dword [ebx + 8], ecx
movzx edx, word [eax + 0x16]
mov dword [ebx + 0xc], edx
mov dword [0x4a2524], 1
mov eax, 1
jmp 0x419559
mov dword [0x4a2524], 0
mov eax, 1
jmp 0x419559
xor eax, eax
mov ecx, dword [esp + 0x540]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044331b
add esp, 0x534
ret 4
Function at 0x419580
Capabilities:
Get file version info

Disassembly:
mov eax, 0x104c
call fcn.00455930
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x1048], eax
xor eax, eax
push 0x103e
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00446040
add esp, 0xc
lea edx, [esp + 4]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41961c
cmp eax, 0x1040
jae 0x41961c
lea ecx, [esp + 8]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41961c
lea edx, [esp]
push edx
push edi
push 0x469e84
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x10], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41961c
mov eax, 1
mov ecx, dword [esp + 0x1048]
xor ecx, esp
call fcn.0044331b
add esp, 0x104c
ret
mov ecx, dword [esp + 0x1048]
xor ecx, esp
xor eax, eax
call fcn.0044331b
add esp, 0x104c
ret
Function at 0x419730
Capabilities:
Enumerate process modules
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, 0xffffffff
je 0x4197a0
push 0x424
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00446040
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x28], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x4197c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0044331b
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x40]
push str.flash.ocx
push edx
call fcn.00444551
add esp, 8
test eax, eax
jne 0x419885
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x244]
push ecx
mov dword [esp + 0x24], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x419885
push esi
call fcn.00430556
mov edi, eax
add esp, 4
test edi, edi
je 0x419881
push esi
push 0
push edi
call fcn.00446040
add esp, 0xc
push edi
push esi
xor esi, esi
push esi
lea edx, [esp + 0x24c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x419878
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x469e84
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x419878
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 0x140000
jne 0x419878
cmp dword [eax + 0xc], 0x10b
jne 0x419878
mov eax, dword [ebp + 8]
cmp ebx, eax
jae 0x419878
mov edx, dword [esp + 0x1c]
add edx, ebx
cmp eax, edx
jb 0x41989a
push edi
call fcn.00443685
add esp, 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4197c0
jmp 0x4198af
push edi
mov dword [esp + 0x14], 1
call fcn.00443685
mov edi, dword [esp + 0x10]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x44c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044331b
mov esp, ebp
pop ebp
ret
Function at 0x419a40
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
sub esp, 0x40
xor eax, eax
push ebx
push ebp
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push edi
lea eax, [esp + 0x2c]
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x48]
cmp edi, 0x1000
ja 0x419a8b
mov edi, 0x1000
mov eax, dword [esp + 0x54]
xor edx, edx
div edi
xor ebx, ebx
mov esi, eax
imul esi, edi
cmp dword [esp + 0x58], esi
jae 0x419b63
cmp esi, dword [esp + 0x5c]
jae 0x419b63
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419b63
cmp dword [esp + 0x20], 0x10000
jne 0x419ae9
cmp dword [esp + 0x1c], edi
jb 0x419ae9
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x419b1b
lea eax, [ebp + 1]
and ebp, 0x80000001
jns 0x419af9
dec ebp
or ebp, 0xfffffffe
inc ebp
neg ebp
sbb ebp, ebp
and ebp, 2
dec ebp
imul ebp, eax
imul ebp, edi
add esi, ebp
mov ebp, eax
cmp dword [esp + 0x58], esi
jb 0x419aa4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
mov eax, 0x8d3dcb09
mul edi
shr edx, 6
lea eax, [ebx + 0x74]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], eax
cmp edx, 1
jbe 0x419b56
lea eax, [ebx + 0xe0]
lea ecx, [edx - 1]
lea esi, [eax - 0xe0]
mov dword [eax], esi
lea esi, [eax + 8]
mov dword [eax + 4], esi
add eax, 0x74
sub ecx, 1
jne 0x419b40
mov ecx, dword [0x4a1254]
imul edx, edx, 0x74
mov dword [edx + ebx - 4], ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret