joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4bcb20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
mov dword [ebp - 0x410], ebx
call fcn.004432be
mov esi, eax
add esp, 4
test esi, esi
je 0x41939e
mov dword [esi], 0
mov dword [esi], 0x34532008
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push edx
lea eax, [esi + 0xc]
push eax
call fcn.00465f40
add ebx, 0xfffffff8
lea eax, [esi + 8]
push ebx
push eax
call fcn.004361e0
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x40a]
mov dword [esi + 4], eax
push edx
mov word [ebp - 0x40c], cx
call fcn.00465ec0
add esp, 0x20
push 0x200
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov cl, byte [ebp - 0x40c]
xor eax, eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov al, 0x5c
lea edx, [ebp - 0xc]
push edx
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], al
mov byte [ebp - 8], cl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x419358
xor eax, eax
jmp 0x41936f
lea eax, [ebx + ebx]
call fcn.00466b50
mov eax, esp
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00418590
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [ebp - 0x410]
push ecx
push edx
push esi
push eax
push 4
mov ecx, edi
call fcn.00417eb0
push esi
mov edi, eax
call fcn.004432c9
add esp, 4
mov eax, edi
lea esp, [ebp - 0x41c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466b40
mov esp, ebp
pop ebp
ret
Function at 0x419590
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x489838
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4bcb20]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x238]
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
call fcn.004432be
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4196f6
mov dword [esi], 0
mov dword [esi], 0x34532008
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
lea edx, [eax + eax*2]
mov eax, dword [edi + 4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [esi + 0xc]
push ecx
call fcn.00465f40
lea edx, [ebx - 8]
push edx
lea eax, [esi + 8]
push eax
call fcn.004361e0
mov edi, dword [ebp - 0x14]
add esp, 0x14
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call fcn.0044376e
push 0
push 0x9002
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00443b6b
test eax, eax
je 0x419680
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.004434a4
lea ecx, [ebp - 0x28]
call fcn.00443708
mov dword [ebp - 0x14], 1
push 0x22c
lea eax, [ebp]
push 0
push eax
call fcn.00465ec0
add esp, 0xc
lea ecx, [ebp]
push ecx
push edi
call fcn.0044400b
test eax, eax
je 0x4196af
or byte [ebp + 0x20], 6
lea edx, [ebp]
push edx
push edi
call fcn.004441e2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00443849
jmp 0x4196ea
push esi
call fcn.004432c9
mov eax, dword [ebp - 0x14]
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 + 0x22c]
xor ecx, ebp
call fcn.00466b40
add ebp, 0x230
mov esp, ebp
pop ebp
ret 4

Function at 0x419920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x419939
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x419974
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x419970
lea ebx, [ebx]
cmp esi, eax
jae 0x419974
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x419960
cmp esi, eax
jb 0x41997a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x41ae70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48990e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bcb20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00445bfc
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi], vtable.CBroListCtrl.0
lea ebp, [esi + 0x54]
call fcn.0044bde6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41aec9
push 0x80004005
call fcn.00419900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], 1
lea edi, [esi + 0x58]
call fcn.0044bde6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41aefa
push 0x80004005
call fcn.00419900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push 0x4a1f68
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.0041a4f0
mov ecx, dword [edi]
push ebx
push ebx
push ecx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
mov ecx, ebp
call fcn.0041a970
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41b3b0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4899c8
mov eax, dword fs:[0]
push eax
sub esp, 0xaf8
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0xaf4], eax
push esi
push edi
mov eax, dword [0x4bcb20]
xor eax, esp
push eax
lea eax, [esp + 0xb04]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0xb14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea ecx, [esp + 0x304]
push ecx
mov dword [esp + 0xb14], 0
call edi
push 0x4a1f68
lea ecx, [esp + 0x10]
call fcn.0041afa0
push 0x701
push 4
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x304]
push edx
call edi
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x704]
push ecx
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
push eax
push 0
push 0x104d
push ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x48fc88
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 1
call edi
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104c
lea edx, [esp + 0x70c]
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x34], edx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b4f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb14]
add eax, 0xfffffff0
mov dword [esp + 0xb0c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb04]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xaf4]
xor ecx, esp
call fcn.00466b40
add esp, 0xb04
ret 4
Function at 0x41e800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
mov esi, ecx
xor eax, eax
push 0x400
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esi], vtable.COpenAsDialog.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov word [esp + 0x10], ax
call fcn.00465ec0
add esp, 0xc
push 0x200
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._shell32.dll
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x41e88d
push str.OpenAs_RunDLLW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00466b40
add esp, 0x408
ret
Function at 0x41eb60
Capabilities:
Check os version

Disassembly:
sub esp, 0x234
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x41eda0
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x41ed0e
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x41ec52
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41ebcf
mov eax, 7
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
cmp eax, 1
jne 0x41ebef
mov eax, 8
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
cmp eax, 2
jne 0x41eda0
lea ecx, [esp + 0x118]
push ecx
mov dword [esp + 0x11c], 0x11c
call esi
mov al, byte [esp + 0x232]
cmp al, 3
je 0x41ec37
cmp al, 2
je 0x41ec37
mov eax, 9
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
mov eax, 0xa
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
cmp eax, 6
jne 0x41ecea
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41ecbd
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x11c], 0x11c
call esi
mov al, byte [esp + 0x232]
cmp al, 3
je 0x41eca2
cmp al, 2
je 0x41eca2
mov eax, 0xb
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
mov eax, 0xc
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
cmp eax, 1
jne 0x41eda0
call fcn.0041eaf0
neg eax
sbb eax, eax
neg eax
add eax, 0xd
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
cmp eax, 4
jne 0x41eda0
mov eax, 6
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
cmp eax, 1
jne 0x41ed81
cmp dword [esp + 8], 4
jne 0x41eda0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41ed41
mov eax, 2
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
cmp eax, 0xa
jne 0x41ed61
mov eax, 3
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
cmp eax, 0x5a
jne 0x41eda0
mov eax, 4
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
test eax, eax
jne 0x41eda0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466b40
add esp, 0x234
ret
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00466b40
add esp, 0x234
ret

Function at 0x41efb0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
add ecx, 0x428
push ecx
push 0x41edc0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
cmp dword [esp], eax
setne al
pop ecx
ret

Function at 0x41f2e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f30f
test esi, esi
je 0x41f30f
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x41f510
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x1260
call fcn.00467cb0
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x125c], eax
mov eax, dword [esp + 0x1268]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1270]
push edi
mov dword [esp + 0x18], ecx
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x276]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x278], cx
call fcn.00465ec0
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa82]
push ecx
mov word [esp + 0xa84], ax
call fcn.00465ec0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f584
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x41f5a9
push 0x4a18f0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea edx, [esp + 0xa70]
push edx
call ebx
push 0x48fca4
lea eax, [esp + 0xa70]
push eax
call edi
push 0x250
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00465ec0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xa70]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, 0xffffffff
je 0x41f72b
test ebp, ebp
je 0x41f72b
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x4907b8
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f646
test dx, dx
je 0x41f642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f646
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f620
xor eax, eax
jmp 0x41f64b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f701
mov ecx, 0x48fc88
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f686
test dx, dx
je 0x41f682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f686
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f660
xor eax, eax
jmp 0x41f68b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f701
push esi
lea ecx, [esp + 0x270]
push ecx
call ebx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x270]
push eax
call edi
lea ecx, [esp + 0x26c]
push ecx
call ebp
test al, 0x10
je 0x41f6cf
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.0041f510
jmp 0x41f701
test al, 1
je 0x41f6e5
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x18]
push 2
add edx, 0xabd
push edx
lea eax, [esp + 0x274]
push eax
call dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f613
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x41f72d
xor eax, eax
mov ecx, dword [esp + 0x126c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466b40
add esp, 0x1260
ret 8
Function at 0x420010
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa84
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0xa80], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x28e]
push ecx
mov word [esp + 0x290], ax
call fcn.00465ec0
mov eax, dword [esp + 0xa98]
lea edx, [esp + 0xa9c]
push edx
push eax
lea ecx, [esp + 0x298]
push 0x800
push ecx
call fcn.0046918e
push 0x1ff
lea edx, [esp + 0xa5]
push 0
push edx
mov byte [esp + 0xac], 0
call fcn.00465ec0
add esp, 0x28
push 0x200
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x49088c
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x84]
push 0x490888
push edx
call fcn.004690a3
mov esi, eax
add esp, 8
test esi, esi
je 0x420127
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00465ec0
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x5a]
push eax
mov word [esp + 0x5c], dx
call fcn.00465ec0
add esp, 0x18
lea ecx, [esp + 0x284]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00468fc3
add esp, 4
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00468ef2
add esp, 4
push eax
push 0x490870
push esi
call fcn.00468da0
push esi
call fcn.00468d24
add esp, 0x18
mov ecx, dword [esp + 0xa84]
pop esi
xor ecx, esp
call fcn.00466b40
add esp, 0xa84
ret
Function at 0x420140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4bcb20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x42025f
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x420196
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x420182
xor eax, eax
jmp 0x420196
lea eax, [esi + esi]
call fcn.00466b50
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00418590
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42025f
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xc0000000
cmp eax, 0x80000000
jne 0x4201d5
mov edx, dword [ebp + 8]
push edx
call fcn.0041e7b0
add esp, 4
mov edi, eax
jmp 0x4201d8
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call esi
test eax, eax
jne 0x42025f
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x42025f
mov ebx, dword [edi + 0x3c]
push 0xf8
add ebx, edi
push ebx
call esi
test eax, eax
jne 0x42025f
cmp dword [ebx], 0x4550
jne 0x42025f
mov esi, dword [ebx + 0x80]
add esi, edi
cmp esi, ebx
je 0x42025f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42023d
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
add eax, edi
push ecx
push eax
call fcn.004692b9
add esp, 8
test eax, eax
je 0x42023d
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x420220
cmp dword [esi + 0xc], 0
je 0x42025f
mov esi, dword [esi + 0x10]
add esi, edi
cmp dword [esi], 0
je 0x42025f
lea ecx, [ecx]
mov ebx, dword [ebp - 0xc]
cmp dword [esi], ebx
je 0x420277
add esi, 4
cmp dword [esi], 0
jne 0x420250
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466b40
mov esp, ebp
pop ebp
ret 0x10
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x4202ab
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 8]
push edx
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi], eax
mov edx, dword [ebp - 8]
push edx
push 4
push esi
call edi
mov eax, ebx
jmp 0x420261
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, ebx
jmp 0x420261
Function at 0x4206c0
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
push str.Begin_CDocumentMgr::monitorHook_pid__d_
mov dword [esp + 0x14], edi
call fcn.00420010
mov eax, dword [edi + 0x11ec]
add esp, 8
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x420811
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push 0
push 0x401
call ebx
mov edi, eax
test edi, edi
je 0x4207f0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x4207e9
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
push 0
push 0x989680
push ecx
push eax
call fcn.00468720
test edx, edx
ja 0x42077a
cmp eax, 0xa
jbe 0x4207e9
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x3a]
push eax
mov word [esp + 0x3c], dx
call fcn.00465ec0
push esi
lea ecx, [esp + 0x40]
push str.ODMHOOK__u
push ecx
call fcn.0046930b
add esp, 0x18
lea edx, [esp + 0x30]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x4207e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x34]
push eax
push str.OpenEvent_Mutex__NULL__::TerminateProcess___s__error__d_
call fcn.00420010
add esp, 0xc
push 0
push esi
push 0
push 1
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4207e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x11ec]
push 0x1f4
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x420711
push str.End_CDocumentMgr::monitorHook
call fcn.00420010
mov ecx, dword [esp + 0x78]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00466b40
mov esp, ebp
pop ebp
ret 4
Function at 0x420bb0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push edi
mov edi, dword [esp + 0x218]
lea eax, [esp + 0x80]
push eax
push 0x101
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x420bf0
push str.Failed_to_load_winsock_stack_n
jmp 0x420cbf
mov eax, dword [esp + 0x80]
cmp al, 1
jne 0x420cba
shr eax, 8
cmp al, 1
jne 0x420cba
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0xc], str.time.windows.com
call fcn.0042f310
lea ecx, [esp + 0x34]
call fcn.0042ebe0
lea ecx, [esp + 0x3c]
call fcn.0042ebe0
lea ecx, [esp + 0x44]
call fcn.0042ebe0
lea ecx, [esp + 0x4c]
call fcn.0042ebe0
xor esi, esi
mov edx, dword [esp + esi*4 + 0xc]
push 0x7b
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.0042f340
test eax, eax
jne 0x420c6c
inc esi
cmp esi, 1
jb 0x420c42
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
jmp 0x420cc9
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x48]
call fcn.0042f160
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
call fcn.0042efb0
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00419af0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ebx, 1
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
jmp 0x420cc9
push str.Winsock_stack_does_not_support_version_which_this_program_requires_n
call fcn.004693e2
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
call fcn.00466b40
add esp, 0x20c
ret 4

Function at 0x420cf0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
push 8
mov esi, ecx
call fcn.0044328f
add esp, 4
push 0
push 0
mov edi, eax
mov eax, dword [esp + 0x14]
push 1
push 0
mov dword [edi], esi
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 4
push edi
push 0x420b70
push 0
push 0
mov dword [esi + 0x11ec], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x11e8], eax
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_ResumeThread]

Function at 0x421a20
Capabilities:
Create process on windows

Disassembly:
jmp fcn.00420f80
mov ecx, dword [0x4c1390]
test ecx, ecx
jne 0x421a2d
xor eax, eax
ret
jmp 0x421790