joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430efb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x48a220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
call fcn.00405bd0
mov esi, 0x46a5d8
push esi
call fcn.004038d0
pop ecx
push eax
push esi
push 4
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
call fcn.004073d0
test eax, eax
jne 0x430f71
push 0xffffffffffffffff
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x34]
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 7
push eax
mov dword [ebp - 0x24], ebx
call fcn.00406670
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405cd0
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00406920
lea eax, [ebp - 0x1c]
push eax
call fcn.00430e63
pop ecx
test al, al
je 0x430f86
mov byte [edi], bl
jmp 0x43101d
or eax, 0xffffffff
push eax
xor ecx, ecx
mov dword [ebp - 0x20], 7
push ebx
lea eax, [ebp - 0x1c]
mov word [ebp - 0x34], cx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], ebx
call fcn.00406670
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405cd0
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00406920
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x430fee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x430ff5
cmp esi, 3
je 0x430ff5
cmp esi, 0x7b
jne 0x43101f
jmp 0x430ff5
test eax, 0x400
jne 0x43101a
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x5c
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040df00
cmp eax, 2
ja 0x430f89
jmp 0x430f7f
mov byte [edi], 1
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00406920
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449e44
mov esp, ebp
pop ebp
ret
Function at 0x4311a6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x48a220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
push ebx
push esi
mov esi, dword [ebp + 8]
push eax
call fcn.00405c00
lea eax, [ebp - 0x22c]
push eax
call fcn.00430e63
xor ebx, ebx
pop ecx
test al, al
je 0x4311e7
mov bl, 1
jmp 0x431418
push edi
xor eax, eax
mov dword [ebp - 0x234], ebx
push 7
pop edi
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x244]
push eax
push esi
mov dword [ebp - 0x230], edi
call fcn.00430dd0
pop ecx
pop ecx
test al, al
je 0x431408
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x22c]
mov esi, dword [ebp - 0x22c]
cmp edx, 8
mov ecx, dword [ebp - 0x21c]
push 0x5c
cmovae eax, esi
pop edi
push 7
cmp word [eax + ecx*2 - 2], di
pop edi
jne 0x43129a
xor eax, eax
mov dword [ebp - 0x248], edi
mov word [ebp - 0x25c], ax
lea eax, [ecx - 1]
push eax
push ebx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], ebx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00406670
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00405cd0
push ebx
push 1
lea ecx, [ebp - 0x25c]
call fcn.00406920
mov edx, dword [ebp - 0x218]
mov esi, dword [ebp - 0x22c]
cmp edx, 8
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x244]
cmovae ecx, esi
cmp dword [ebp - 0x230], 8
push ecx
cmovae eax, dword [ebp - 0x244]
push eax
call fcn.0044f84a
pop ecx
pop ecx
test eax, eax
je 0x431406
push 1
push ebx
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x3a
push eax
lea ecx, [ebp - 0x22c]
call fcn.00406790
mov edi, eax
test edi, edi
je 0x431408
cmp edi, 0xffffffff
je 0x431408
cmp edi, 1
jbe 0x431324
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push 0x5c
cmovae eax, dword [ebp - 0x22c]
pop ecx
cmp word [eax + edi*2 - 4], cx
jne 0x431408
xor eax, eax
mov dword [ebp - 0xa], ebx
cmp dword [ebp - 0x218], 8
mov esi, 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
mov word [ebp - 6], bx
push esi
mov eax, dword [eax + edi*2 - 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x431408
cmp eax, esi
je 0x431408
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x43137d
mov eax, dword [ebp - 0x21c]
sub esi, ecx
sub eax, edi
sar esi, 1
dec eax
add eax, esi
cmp eax, dword [ebp - 0x234]
jne 0x431408
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x214]
push esi
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push ecx
push eax
call fcn.0044fcce
add esp, 0xc
test eax, eax
jne 0x431408
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x244]
cmovae eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], 8
cmovae ecx, dword [ebp - 0x244]
lea eax, [eax + edi*2]
add eax, 2
push eax
lea eax, [ecx + esi*2]
push eax
call fcn.0044f84a
pop ecx
pop ecx
test eax, eax
jne 0x431408
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x244]
call fcn.00406920
pop edi
push 0
push 1
lea ecx, [ebp - 0x22c]
call fcn.00406920
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00449e44
mov esp, ebp
pop ebp
ret
Function at 0x43351f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x48a220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x68], eax
xor ecx, ecx
mov dword [ebp - 0x60], ecx
cmp byte [ebx + 0x2c], cl
jne 0x43354c
mov eax, 0x3f0
jmp 0x433677
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push ecx
push ecx
push 2
push dword [ebx + 0x24]
mov dword [ebp - 0x54], ecx
call edi
cmp dword [ebp - 0x54], 0
jne 0x433574
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x433676
push esi
push dword [ebp - 0x54]
call fcn.004486a9
pop ecx
mov esi, eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebx + 0x24]
call edi
test eax, eax
jne 0x4335a5
push esi
call fcn.0044bdac
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x433675
xor eax, eax
mov dword [ebp - 0x50], eax
cmp dword [esi], eax
jbe 0x43366c
lea edi, [esi + 4]
mov dword [ebp - 0x60], 0x44
test byte [edi + 4], 0x20
jne 0x43365d
test dword [edi + 4], 0xc0000000
jne 0x43365d
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 0x49], 0
test ecx, ecx
je 0x43363e
mov eax, dword [ecx + 4]
xor edx, edx
mov dword [ebp - 0x58], edx
mov edx, dword [ecx]
sub eax, edx
mov dword [ebp - 0x64], edx
push 0x44
cdq
pop ecx
idiv ecx
test eax, eax
je 0x43363b
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
push dword [edi]
add ecx, dword [ebp - 0x64]
call fcn.00403e90
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x433637
mov ecx, dword [ebp - 0x5c]
push 0x44
pop eax
add ecx, eax
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [ebp - 0x64], edx
cdq
idiv dword [ebp - 0x60]
cmp dword [ebp - 0x58], eax
jb 0x4335fc
jmp 0x43363b
mov byte [ebp - 0x49], 1
mov eax, dword [ebp - 0x50]
cmp byte [ebp - 0x49], 0
jne 0x43365d
push dword [edi]
lea ecx, [ebp - 0x48]
call fcn.004334b3
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebx + 0x18]
call fcn.00430b01
mov eax, dword [ebp - 0x50]
inc eax
add edi, 8
mov dword [ebp - 0x50], eax
cmp eax, dword [esi]
jb 0x4335bc
push esi
call fcn.0044bdac
pop ecx
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00449e44
mov esp, ebp
pop ebp
ret 4
Function at 0x43395a
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp byte [edi + 0x2c], cl
jne 0x433977
mov eax, 0x3f0
jmp 0x433a7a
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push 3
push dword [edi + 0x24]
mov dword [ebp - 4], ecx
call ebx
cmp dword [ebp - 4], 0
jne 0x43399f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x433a79
push esi
push dword [ebp - 4]
call fcn.004486a9
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 3
push dword [edi + 0x24]
call ebx
test eax, eax
jne 0x4339d0
push esi
call fcn.0044bdac
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x433a78
and dword [ebp - 0x14], 0
cmp dword [esi], 0
jbe 0x433a6f
lea ebx, [esi + 4]
mov dword [ebp - 0x10], 0x18
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x433a54
mov eax, dword [ecx + 4]
xor edx, edx
mov ecx, dword [ecx]
sub eax, ecx
mov dword [ebp - 8], edx
cdq
idiv dword [ebp - 0x10]
test eax, eax
je 0x433a54
xor eax, eax
mov dword [ebp - 0xc], eax
and dword [ebp - 0x1c], 0
add eax, ecx
and dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 8
jb 0x433a19
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x18]
jne 0x433a35
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x1c]
je 0x433a5d
push 0x18
pop eax
add dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cdq
idiv dword [ebp - 0x10]
cmp dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
jb 0x433a07
push ebx
lea ecx, [edi + 0xc]
call fcn.0042a8a8
mov eax, dword [ebp - 0x14]
add ebx, 0xc
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi]
jb 0x4339e7
push esi
call fcn.0044bdac
pop ecx
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x434555
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x48a220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2dc], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2f0], ecx
call fcn.00450074
pop ecx
push eax
lea ecx, [ebx + 0x2c]
call fcn.00439a88
push esi
call fcn.00450074
mov esi, eax
mov edi, 0x40c
mov eax, dword [ebp - 0x2dc]
pop ecx
mov ecx, 0x8040c
cmp dword [eax + 0x44], 0
cmovne edi, ecx
cmp dword [ebx + 0x1c], 0
mov dword [ebp - 0x2d4], edi
je 0x4345dd
call fcn.0040fbc0
cmp eax, 5
jge 0x4345dd
or edi, 0x1000000
mov dword [ebp - 0x2d4], edi
xor eax, eax
lea edi, [ebp - 0x300]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x300]
push eax
push dword [ebp - 0x2dc]
mov eax, dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 0x2d4]
movzx eax, al
push eax
push 0
push 0
push esi
push dword [ebp - 0x2d8]
push dword [ebx + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x43462c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x434721
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.00422bb0
lea ecx, [ebx + 0x10]
call fcn.004110b0
cmp dword [ebx + 0x1c], 0
je 0x43465f
push dword [ebp - 0x2ec]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4346d1
lea edi, [ebx + 0x14]
push dword [edi]
call fcn.00410a70
pop ecx
test al, al
je 0x434694
mov eax, dword [ebp - 0x2e8]
push dword [edi]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x4346d1
mov ecx, edi
call fcn.004110b0
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x1003f
push eax
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4346d1
mov ecx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x2ec]
mov edi, dword [ebp - 0x220]
push eax
call fcn.00422de0
test al, al
jne 0x4346e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x2ec]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x434716
push edi
push dword [ebp - 0x2d8]
call fcn.00434741
pop ecx
pop ecx
mov dword [ebx + 0x28], eax
lea ecx, [ebp - 0x2ec]
lea eax, [ebp - 0x310]
push eax
call fcn.00422ea0
push eax
mov ecx, ebx
call fcn.00422cf0
xor edi, edi
lea ecx, [ebp - 0x2ec]
call fcn.00422be0
test esi, esi
je 0x43472c
push esi
call fcn.0044bd74
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449e44
mov esp, ebp
pop ebp
ret 0x14
Function at 0x434795
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
xor edi, edi
add eax, esi
push edi
push eax
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [ebx + 0x18]
call fcn.00411000
mov eax, dword [ebx + 0x18]
push eax
mov dword [ebp - 4], eax
call fcn.00410a70
pop ecx
test al, al
jne 0x4347df
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4348fc
push edi
push edi
push 6
lea eax, [ebp - 8]
push eax
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4347d4
push edi
push edi
push edi
push 6
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x4347d4
add eax, esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0043451b
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, ebx
mov dword [0x48be98], eax
push 4
push 0x48be98
push str.g_shared_section
call fcn.0043491d
mov ecx, eax
mov dword [0x48be98], edi
test ecx, ecx
je 0x43485a
xor eax, eax
inc eax
cmp ecx, eax
jne 0x4348fc
jmp 0x4347d4
push 4
push 0x48bf40
push str.g_shared_IPC_size
mov ecx, ebx
mov dword [0x48bf40], esi
call fcn.0043491d
mov ecx, eax
mov dword [0x48bf40], edi
test ecx, ecx
jne 0x43484a
mov eax, dword [ebp + 0x14]
mov ecx, ebx
push 4
push 0x48bf44
push str.g_shared_policy_size
mov dword [0x48bf44], eax
call fcn.0043491d
mov ecx, eax
mov dword [0x48bf44], edi
test ecx, ecx
jne 0x43484a
push 0x20
call fcn.004491a1
pop ecx
test eax, eax
je 0x4348c9
push dword [ebp + 8]
mov ecx, eax
push dword [ebx + 0x24]
push dword [ebx + 0x1c]
push dword [ebx + 8]
push dword [ebx]
call fcn.00437549
mov edi, eax
push edi
lea ecx, [ebx + 0x20]
call fcn.00434960
mov ecx, dword [ebx + 0x20]
push 0x400
push esi
push dword [ebp - 4]
call fcn.00437772
test al, al
jne 0x4348ec
push 8
pop eax
jmp 0x4348fc
mov ecx, ebx
call fcn.00422f70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x438a03
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x48a220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp byte [ebp + 8], 0
mov dword [ebp - 0x60], edi
jne 0x438a2f
cmp dword [ebx + 8], edi
jne 0x438a5d
mov al, 1
jmp 0x438b49
push edi
push 0x43e41a
push 1
push str.NtMapViewOfSection
mov esi, 0x46ab0c
push esi
call fcn.0043844c
push 1
push 0x43e53e
push 1
push str.NtUnmapViewOfSection
push esi
mov ecx, ebx
call fcn.0043844c
mov eax, dword [ebx]
push 1
push 0x2000
push 0x10000
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
mov dword [ebp - 0x58], eax
call edi
mov esi, eax
mov eax, dword [ebx + 8]
shl eax, 6
add eax, 0x50
push eax
mov dword [ebp - 0x5c], eax
call fcn.00438662
pop ecx
mov ecx, eax
mov edx, 0xfffff000
and ecx, edx
and eax, 0xfff
add esi, ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
push 0x40
push 0x1000
add ecx, 0xfff
and ecx, edx
push ecx
push esi
push dword [ebp - 0x58]
call edi
mov esi, eax
test esi, esi
jne 0x438ac6
call fcn.0041a640
mov edi, dword [ebp - 0x64]
and dword [ebp - 0x48], 0
add edi, esi
mov esi, dword [ebp - 0x5c]
push 0x64
push 0
push 0x48bf68
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x10
call fcn.0044bde0
add esp, 0xc
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
push esi
push edi
call fcn.004387b1
test al, al
je 0x438b47
lea eax, [ebp - 0x60]
push eax
push 0x10
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x438b47
cmp dword [ebp - 0x60], 0x10
jne 0x438b47
lea eax, [ebp - 0x68]
push eax
push 0x20
push esi
push edi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebx]
push 0x64
push 0x48bf68
push str.g_originals
call fcn.0043491d
neg eax
sbb eax, eax
inc eax
jmp 0x438b49
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449e44
mov esp, ebp
pop ebp
ret 4
Function at 0x43c8c3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x34]
push esi
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43c953
cmp dword [ebp + 0xc], 0
mov eax, 0x101c01
push edi
mov edi, 0x100c43
je 0x43c908
mov eax, 0x1fffff
mov edi, eax
push 1
push 0
push eax
push esi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x43c931
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x43c952
push 1
push 0
push edi
lea eax, [esi + 4]
push eax
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
ret

Function at 0x43f230
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x43f24f
xor al, al
jmp 0x43f2a8
push ebx
jmp 0x43f293
cmp eax, 0x80
je 0x43f2a5
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x43f2a5
mov ecx, esi
call fcn.0043f2b1
mov bl, al
test bl, bl
je 0x43f282
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x43f2a5
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x43f2a5
test bl, bl
jne 0x43f2ad
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43f252
xor al, al
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x43f2a7
Function at 0x43f395
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x48a220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00405c00
mov ebx, 0x484098
push ebx
call fcn.004038d0
pop ecx
push eax
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x23c]
call fcn.0040dc90
cmp eax, 0xffffffff
jne 0x43f3fd
xor bl, bl
jmp 0x43f595
xor ebx, ebx
lea ecx, [ebp - 0x23c]
push ebx
inc eax
push eax
call fcn.0040ded0
push 1
push 3
lea ecx, [ebp - 0x310]
call fcn.0043ed7d
mov eax, dword [esi]
push edi
push 0x4843ec
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x300]
push edx
push 0x46b4fc
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x2ec]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ebp + ecx - 0x2ec], eax
mov eax, dword [ebp - 0x300]
mov eax, dword [eax + 4]
or dword [ebp + eax - 0x2ec], 8
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x300]
push 0x468bdc
push eax
call fcn.0043e772
pop ecx
pop ecx
push eax
call fcn.0043e8e1
pop ecx
pop ecx
push eax
call fcn.0043e772
pop ecx
pop ecx
mov ecx, eax
call fcn.0043ef71
push eax
call fcn.0043e578
pop ecx
pop ecx
mov ecx, eax
call fcn.0043ef71
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00441205
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push eax
call fcn.00450074
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x224]
mov esi, eax
call fcn.00406920
push 0x40
lea eax, [ebp - 0x350]
push ebx
push eax
call fcn.0044bde0
add esp, 0xc
mov dword [ebp - 0x354], 0x44
xor eax, eax
lea edi, [ebp - 0x260]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x354]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43f57f
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x250]
call fcn.00422bb0
push 0xffffffffffffffff
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne al
cmp edi, 0x102
je 0x43f574
test al, al
je 0x43f574
cmp dword [ebp - 0x240], ebx
jne 0x43f574
mov bl, 1
lea ecx, [ebp - 0x250]
call fcn.00422be0
test esi, esi
je 0x43f58a
push esi
call fcn.0044bd74
pop ecx
lea ecx, [ebp - 0x310]
call fcn.0043f09f
push 0
push 1
lea ecx, [ebp - 0x23c]
call fcn.00406920
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449e44
mov esp, ebp
pop ebp
ret 4
Function at 0x43f5b9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0xc], ebx
call fcn.0040f830
cmp dword [eax + 0x28], 1
je 0x43f5da
mov al, 1
jmp 0x43f6b9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 8], eax
call esi
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [edi]
mov esi, eax
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea eax, [ebp - 4]
push 0x100002
push eax
push dword [ecx]
push dword [edi + 8]
push esi
call ebx
test eax, eax
je 0x43f6a8
mov eax, dword [edi]
lea ecx, [ebp - 8]
push 0
push 0
push 0x100002
push ecx
push dword [eax]
push dword [edi + 0xc]
push esi
call ebx
test eax, eax
je 0x43f6a8
mov eax, dword [edi]
mov ecx, 0x1000
push 0x40
push ecx
push ecx
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x43f6a8
push 0x2c
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0044bde0
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
push ecx
push 0x10
lea ecx, [ebp - 0x3c]
push ecx
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x43f6a8
cmp dword [ebp - 0xc], 0x10
jne 0x43f6a8
push esi
mov ecx, edi
call fcn.0043f395
test al, al
je 0x43f6a8
mov ecx, edi
call fcn.0043f230
test al, al
jne 0x43f6ac
xor al, al
jmp 0x43f6b8
mov eax, dword [edi]
push esi
push dword [eax]
call fcn.0043f306
pop ecx
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4464a9
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push dword [ebp + 0x14]
call fcn.004471be
pop ecx
test al, al
jne 0x44651a
call fcn.004473e7
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
je 0x44651a
push esi
push 0x40
xor esi, esi
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.0044bde0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x400
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x446519
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov al, 1
mov esp, ebp
pop ebp
ret