joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4099d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543768
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
mov eax, dword [0x5960c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00521f30
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x6c], 0x44
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0xc
or ecx, eax
jge 0x409a41
push 0
lea ecx, [ebp + 8]
call fcn.00402080
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409a9c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409eb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 0xc
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00431213
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x409eff
push 0x74
call ebx
test ax, ax
jns 0x409eff
lea ecx, [esp + 0x10]
call fcn.0043094b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x409f3b
cmp dword [esi + 4], edi
jne 0x409f3b
push 0x4f
call ebx
test ax, ax
js 0x409eeb
cmp dword [esi + 4], edi
jne 0x409f3b
push 0x50
call ebx
test ax, ax
js 0x409eeb
cmp dword [esi + 4], edi
jne 0x409f3b
push 0x4e
call ebx
test ax, ax
js 0x409eeb
cmp dword [esi + 8], 8
lea ecx, [esp + 0x10]
je 0x409eef
call fcn.0043094b
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a420
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40a43d
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0041afeb
mov esi, eax
add esp, 4
test esi, esi
je 0x40a4c8
push edi
push 0
push esi
call fcn.00521f30
add esp, 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a4bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40a4bf
push edi
push eax
push esi
call fcn.00524870
mov eax, dword [ebp + 8]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x40a4bf
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push esi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x40a4d1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041aff6
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp edi, dword [ebp - 4]
jne 0x40a4c0
call fcn.0041aff6
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c580
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00521f30
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.0040c910
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40c5c2
mov ecx, dword [str.Log_]
mov dl, byte [0x572fb8]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [ebp - 0x110]
push eax
call fcn.00411ad0
add esp, 4
test eax, eax
jne 0x40c5fc
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x40c61a
lea eax, [ebp - 0x110]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c610
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret

Function at 0x40c630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov byte [ebp - 0x84], 0
call fcn.00521f30
push 0x7f
lea ecx, [ebp - 0x84]
push 0x20
push ecx
call fcn.00521f30
mov eax, edi
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c672
sub eax, ecx
push eax
lea edx, [ebp - 0x84]
push edi
push edx
call fcn.00524870
lea eax, [ebp - 0x84]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c695
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x84]
push 1
push edx
call fcn.0051c78c
mov eax, dword [esi]
push eax
push 1
push 1
push str._t_t_t_t_t_t
call fcn.0051c78c
mov eax, ebx
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c6d0
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
push 1
push ebx
call fcn.0051c78c
mov edx, dword [esi]
push edx
push 1
push 2
push 0x572400
call fcn.0051c78c
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x20
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
Function at 0x40c7c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
test edi, edi
jne 0x40c8ee
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
mov edi, vtable.CWindowIterator.0
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
neg ecx
or ecx, eax
push ecx
call fcn.0041afeb
add esp, 4
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0x411fc0
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x10], vtable.CMainWindowIterator.0
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], 0
test eax, eax
je 0x40c8a9
cmp dword [esp + 0x14], 0
jbe 0x40c8a9
mov eax, dword [eax]
mov dword [esp + 0x18], 1
test eax, eax
je 0x40c8a9
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
push ecx
push 0x8907
push 0x8907
push eax
call esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40c8db
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x14]
jae 0x40c8db
mov eax, dword [ecx + edx*4]
inc edx
mov dword [esp + 0x18], edx
test eax, eax
jne 0x40c867
push ecx
mov dword [esp + 0xc], edi
call fcn.0041aff6
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00427383
test eax, eax
je 0x40c8bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40c8bf
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x20]
push ecx
push 0x8907
push 0x8907
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0xc]
push ecx
mov dword [esp + 0xc], edi
call fcn.0041aff6
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
push 0x8907
push 0x8907
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.00521f30
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test esi, esi
je 0x40c9a2
lea eax, [ebp - 0x108]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c968
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40c975
mov edx, dword [str.IBKCNAssist_]
mov dword [eax], edx
mov ecx, dword [0x572fc8]
mov dword [eax + 4], ecx
mov edx, dword [0x572fcc]
mov dword [eax + 8], edx
mov cx, word [0x572fd0]
mov word [eax + 0xc], cx
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
Function at 0x40c9c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.00521f30
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test esi, esi
je 0x40ca59
lea eax, [ebp - 0x108]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ca18
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40ca25
mov edx, dword [str.IBKCNAssistOcx_]
mov dword [eax], edx
mov ecx, dword [0x572fd8]
mov dword [eax + 4], ecx
mov edx, dword [0x572fdc]
mov dword [eax + 8], edx
mov ecx, dword [0x572fe0]
mov dword [eax + 0xc], ecx
mov dl, byte [0x572fe4]
mov byte [eax + 0x10], dl
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
Function at 0x40ca70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543a68
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea edi, [ebx + 0x39]
mov eax, str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00405480
push 0x19
mov eax, str.FEATURE_BROWSER_EMULATION
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040cf20
mov edi, 0xf
mov eax, str.IBKCNAssist.exe
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00405480
mov eax, dword [ebp - 0x48]
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jae 0x40caf6
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40cb29
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40cb15
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x4c]
push edx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40cb80
mov eax, dword [ebp - 0x2c]
mov esi, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
cmp dword [ebp - 0x18], edi
jae 0x40cb3f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x58]
push edx
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cb63
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp + 8]
je 0x40cb80
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40cb6e
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x4c]
push esi
lea ecx, [ebp + 8]
push ecx
push esi
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
jb 0x40cb9b
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041aff6
add esp, 4
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
cmp dword [ebp - 0x34], edi
jb 0x40cbb9
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041aff6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret 4
Function at 0x40cbe0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x58a888
push 0x522520
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5960c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov ebx, edx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xc8], ecx
xor esi, esi
mov dword [ebp - 0xac], esi
mov edx, dword [str.mshtml.dll]
mov dword [ebp - 0x28], edx
mov eax, dword [0x572e68]
mov dword [ebp - 0x24], eax
mov cx, word [0x572e6c]
mov word [ebp - 0x20], cx
mov dl, byte [0x572e6e]
mov byte [ebp - 0x1e], dl
xor edi, edi
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb0], esi
mov byte [ebp - 0xa8], 0
push 0x7f
push esi
lea eax, [ebp - 0xa7]
push eax
call fcn.00521f30
add esp, 0xc
test ebx, ebx
jne 0x40cc8d
lea eax, [ebx + 0x57]
jmp 0x40cdc5
mov dword [ebp - 4], esi
lea ecx, [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x40cda7
push ebx
call fcn.0051bfb0
add esp, 4
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x40cccd
mov dword [ebp - 0xac], 8
jmp 0x40cdb3
push eax
push ebx
mov eax, dword [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40cda7
xor ebx, ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xc0], ebx
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0xb4]
push eax
push 0x5718c4
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40cd30
cmp dword [ebp - 0xc0], ebx
je 0x40cd30
mov eax, dword [ebp - 0xb4]
movzx esi, word [eax + 0xa]
movzx edi, word [eax + 8]
push edi
push esi
push str.Internet_Explorer__d._d
lea edx, [ebp - 0xa8]
call fcn.0040d0a0
add esp, 0xc
mov edx, dword [ebp - 0xc8]
mov dword [edx], esi
mov edx, dword [ebp - 0xc4]
cmp edx, ebx
je 0x40cd8a
mov eax, dword [ebp - 0xb8]
cmp dword [eax], ebx
jbe 0x40cd8a
lea eax, [ebp - 0xa8]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cd70
sub eax, esi
push eax
lea ecx, [ebp - 0xa8]
push ecx
push edx
call fcn.00524870
add esp, 0xc
lea eax, [ebp - 0xa8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cd93
sub eax, edx
inc eax
mov edx, dword [ebp - 0xb8]
mov dword [edx], eax
jmp 0x40cdb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0040cde1
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
Function at 0x40db60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x40], 0x3c
call fcn.00521f30
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40dbeb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbe4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [ebp - 4], 0x103
jne 0x40dc2b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push ecx
call esi
push 0x1f4
call edi
cmp dword [ebp - 4], 0x103
je 0x40dc10
pop edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dc4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dc80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543740
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x5960c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00521f30
mov ecx, dword [ebp + 8]
xor eax, eax
push 0x5c
push ecx
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.0051bc1f
add esp, 0x14
test eax, eax
jne 0x40dce9
or eax, 0xffffffff
jmp 0x40dcec
sub eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.00404c70
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40dd1c
push 0
lea ecx, [ebp + 8]
call fcn.00402080
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push edi
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40dd97
mov byte [ebp - 4], al
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dd5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x40dda3
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push ecx
jmp 0x40dda8
mov edx, dword [ebp - 0x24]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dde0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e180
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543f22
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x21f]
push ebx
push eax
mov byte [ebp - 0x220], bl
call fcn.00521f30
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.0040f030
mov ecx, edi
push ecx
lea ecx, [ebp - 0x224]
call fcn.00401ea0
push 0x103
lea edx, [ebp - 0x117]
push ebx
mov dword [ebp - 4], ebx
push edx
mov byte [ebp - 0x118], bl
call fcn.00521f30
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00401ea0
push str.update.txt
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.00401ea0
push eax
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 2
call fcn.0040ac80
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e27b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00405870
push 0xa
push str.update.txt
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.00401b30
mov esi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea edx, [ebp - 0x228]
mov dword [ebp - 0x23c], esp
mov ecx, esp
push edx
call fcn.00405870
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x238], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 6
call fcn.00405870
mov byte [ebp - 4], 5
call fcn.0040de40
add esp, 8
cmp al, bl
jne 0x40e2f2
xor edi, edi
jmp 0x40e2f5
movzx edi, al
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e33b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e360
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e389
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret