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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x494240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x415e41
cmp word [ebp - 0x210], 0
je 0x415e41
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00407420
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0040a7b0
cmp dword [ebp - 0x214], 8
jb 0x415f5f
push dword [ebp - 0x228]
jmp 0x415f57
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00415c60
test al, al
je 0x415e96
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00407ad0
jmp 0x415f48
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x48e284
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.00408320
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00407ad0
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.00407bf0
cmp eax, 0xffffffff
je 0x415f14
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00408530
cmp dword [ebp - 0x214], 8
jb 0x415f2b
push dword [ebp - 0x228]
call fcn.00444e3c
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x415f5f
push dword [ebp - 0x240]
call fcn.00444e3c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004455d4
mov esp, ebp
pop ebp
ret
Function at 0x415f70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x494240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x415f98
mov ebx, dword [edi]
jmp 0x415f9a
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415fda
test al, 0x10
je 0x415fbd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x415fc7
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0040abb0
cmp dword [edi + 0x14], 8
jb 0x415fef
mov eax, dword [edi]
jmp 0x415ff1
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push 0
call fcn.004085e0
test eax, eax
jne 0x416014
test esi, esi
je 0x41605b
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x416061
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.00415f70
test al, al
jne 0x416026
xor bl, bl
jmp 0x416061
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41605f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x41604e
mov ecx, edi
call fcn.00415c40
test al, al
jne 0x41605f
test esi, esi
je 0x41605b
mov ecx, ebx
call fcn.004168a0
mov dword [esi], eax
xor bl, bl
jmp 0x416061
mov bl, 1
cmp dword [ebp - 8], 8
jb 0x416072
push dword [ebp - 0x1c]
call fcn.00444e3c
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004455d4
mov esp, ebp
pop ebp
ret

Function at 0x416200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x494240]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov word [esp + 0x50], ax
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4162e5
cmp eax, 0x104
ja 0x4162e5
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.00407420
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040a7b0
mov ecx, eax
call fcn.0040b0b0
cmp esi, eax
je 0x416280
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407ad0
cmp dword [esp + 0x1c], 8
jb 0x416293
push dword [esp + 8]
call fcn.00444e3c
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x4162bd
push dword [esp + 0x38]
call fcn.00444e3c
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x4162d0
push dword [esp + 0x20]
call fcn.00444e3c
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
Function at 0x416be0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x494240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x416c8f
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x416c8f
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408320
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x416c47
mov eax, dword [esi]
jmp 0x416c49
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x416c7c
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x416c7c
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408320
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004455d4
mov esp, ebp
pop ebp
ret
Function at 0x41ad10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
mov esi, edx
mov dword [esp + 8], ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
push edi
test esi, esi
je 0x41ad81
mov dword [esp + 0x10], 0xffffffff
jmp 0x41ad40
lea edx, [esp + 0x14]
cmp esi, 0xffffffff
lea eax, [esp + 0x10]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x41ad88
test bl, 1
je 0x41ad6d
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.0040c600
mov ecx, dword [esp + 0xc]
sub esi, edi
add ecx, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x41ad40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00410e50
int3

Function at 0x41e840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x494240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
test cl, cl
je 0x41e912
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x41e891
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00407420
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040a7b0
cmp esi, eax
je 0x41e8c5
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407ad0
cmp dword [ebp - 0x22c], 8
jb 0x41e8dc
push dword [ebp - 0x240]
call fcn.00444e3c
add esp, 4
xor eax, eax
mov dword [ebp - 0x22c], 7
cmp dword [ebp - 0x214], 8
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
jb 0x41e925
push dword [ebp - 0x228]
call fcn.00444e3c
add esp, 4
jmp 0x41e925
push esi
push 0x6c
call fcn.00411000
add esp, 8
test al, al
je 0x41e880
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], str.Microsoft
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x244], 9
push eax
mov ecx, esi
call fcn.0040afe0
cmp esi, eax
je 0x41e95e
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407ad0
cmp dword [ebp - 0x214], 8
jb 0x41e975
push dword [ebp - 0x228]
call fcn.00444e3c
add esp, 4
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], str.Internet_Explorer
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x244], 0x11
push eax
mov ecx, esi
call fcn.0040afe0
cmp esi, eax
je 0x41e9ae
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407ad0
cmp dword [ebp - 0x214], 8
jb 0x41e9c5
push dword [ebp - 0x228]
call fcn.00444e3c
add esp, 4
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], str.Quick_Launch
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x244], 0xc
push eax
mov ecx, esi
call fcn.0040afe0
cmp esi, eax
je 0x41e9fe
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407ad0
cmp dword [ebp - 0x214], 8
jb 0x41ea15
push dword [ebp - 0x228]
call fcn.00444e3c
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004455d4
mov esp, ebp
pop ebp
ret
Function at 0x41ffb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x494240]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x4200f4
cmp byte [ebx + 0x45], 0
je 0x4200f4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41fffd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
lea esp, [esp]
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x14]
cmovae edi, dword [esp + 0x14]
lea esi, [esp + 0x14]
cmovae esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x420071
dec eax
je 0x420075
sub eax, 2
je 0x4200cb
xor bl, bl
jmp 0x4200cd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x4200ac
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00448b7d
add esp, 0x10
cmp esi, eax
jne 0x42006d
cmp byte [ebx + 0x45], 0
je 0x4200cb
test esi, esi
jne 0x420030
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.0040eed0
jmp 0x420030
mov bl, 1
cmp dword [esp + 0x28], 0x10
jb 0x4200e0
push dword [esp + 0x14]
call fcn.00444e3c
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret

Function at 0x425f60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
xor edx, edx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
xor edi, edi
movzx ecx, word [ebx + 6]
cmp edx, ecx
jae 0x425fbb
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x425fbb
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x425f96
xor esi, esi
jmp 0x425f9d
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x425fa7
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x425fb0
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x425f76
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x426150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x42616e
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x42620a
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x4261a5
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x42620a
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x4261f1
cmp dl, byte [eax]
jne 0x4261f1
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x4261e4
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x426215
test ecx, ecx
jle 0x426204
lea ebx, [esi + 4]
jmp 0x426206
mov edi, esi
cmp ebx, edi
jne 0x4261c0
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426250
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x426260
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42625d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x42625d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret

Function at 0x42633d
Capabilities:
Log keystrokes via polling
Set environment variable

Disassembly:
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x12
movzx edi, ax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
movzx eax, ax
test ecx, edi
pop edi
je 0x426372
test ecx, eax
je 0x426372
push 0x465470
push str.CHROME_SAFE_MODE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
ret
Function at 0x426c33
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x426c44
mov eax, dword [esi]
jmp 0x426c46
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp + 0xc]
call fcn.004058c0
pop ecx
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004095c0
cmp byte [ebp + 0x10], 0
je 0x426c87
call fcn.0042676d
cmp dword [esi + 0x14], 8
jb 0x426c76
mov ecx, dword [esi]
jmp 0x426c78
mov ecx, esi
push 0x100000
push eax
push ecx
call fcn.0042cc5e
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x426c8f
mov esi, dword [esi]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop esi
pop ebp
ret

Function at 0x4290ff
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x494240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
xor edi, edi
mov word [ebp - 0x20c], ax
push 0x206
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x240], edi
push edi
push eax
call fcn.00447d70
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4291b2
push ebx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00407420
push esi
lea ecx, [ebp - 0x224]
call fcn.00407420
push edi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004142b0
add esp, 0xc
lea ecx, [ebp - 0x224]
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
inc bl
call fcn.00407d80
push edi
push 1
lea ecx, [ebp - 0x23c]
call fcn.00407d80
mov al, bl
pop ebx
jmp 0x4291b4
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004455d4
mov esp, ebp
pop ebp
ret
Function at 0x42cf3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.0040bd80
cmp eax, 1
jle 0x42d015
push edi
push 0x8000000
push 3
push edi
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.chrome_elf.dll_CreateFileW]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00416300
push dword [ebp - 4]
call fcn.00415ad0
pop ecx
test al, al
je 0x42cfbb
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
mov esi, 0x100000
mov dword [ebp - 0x14], eax
cmp eax, esi
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x10]
cmovae ecx, edx
push 4
push 0x1000
mov ebx, dword [ecx]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42cfe8
lea ecx, [ebp - 4]
call fcn.00416360
xor al, al
jmp 0x42d07b
cmp dword [ebp - 8], 0
jbe 0x42cffd
cmp edi, dword [ebp + 0xc]
sbb ecx, ecx
xor eax, eax
neg ecx
inc eax
cmp dword [ebp + 0xc], 0
cmovne eax, ecx
test eax, eax
je 0x42cffd
add edi, dword [ebp - 8]
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42cfca
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 4]
call fcn.00416360
jmp 0x42d079
push 9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x42cfc3
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x48e60c
mov dword [ebp - 8], esi
call fcn.00426250
test al, al
jne 0x42d042
call fcn.00410e50
lea ecx, [ebp - 0xc]
call fcn.00425ef0
lea ecx, [ebp - 0x14]
mov edx, dword [eax + 0x50]
or eax, 0xffffffff
cmp dword [ebp + 0xc], edi
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], edx
cmovne eax, dword [ebp + 0xc]
cmp edx, eax
mov dword [ebp - 0x10], eax
cmovae ecx, edi
push dword [ecx]
push esi
call fcn.0042d192
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d192
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
xor eax, eax
push edi
push 9
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov ecx, 0x1000
mov edx, dword [ebp + 0xc]
test eax, eax
pop edi
cmove eax, ecx
mov ecx, dword [ebp + 8]
dec edx
mov dword [ebp - 0x24], eax
add edx, ecx
jmp 0x42d1d2
mov al, byte [ecx]
add ecx, dword [ebp - 0x24]
cmp ecx, edx
jb 0x42d1cd
mov al, byte [edx]
mov esp, ebp
pop ebp
ret
Function at 0x42d285
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push dword [ebp + 0x14]
call fcn.0042df7a
pop ecx
test al, al
jne 0x42d2f6
call fcn.00443052
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
je 0x42d2f6
push esi
push 0x40
xor esi, esi
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00447d70
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 0x42d2f5
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
Function at 0x42db87
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push str.NtTerminateProcess
xor ebx, ebx
push 0x469e8c
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x42dc81
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x42dc80
push 0x40
push 0x1000
push 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x496354], eax
test eax, eax
je 0x42dc80
push 0
push 0x20
push eax
push 0x42d45e
push esi
mov dword [0x496034], 0x496088
mov dword [0x496030], 0x496038
call fcn.0042e68e
add esp, 0x14
test eax, eax
je 0x42dc4d
push 0x8000
push 0
push dword [0x496354]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42dc41
call fcn.00410e50
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
jmp 0x42dc75
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 5
push esi
call edi
test eax, eax
jne 0x42dc66
call fcn.00410e50
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x20
push dword [0x496354]
call edi
test eax, eax
jne 0x42dc80
call fcn.00410e50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42de61
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x42d2fc
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret

Function at 0x42de7b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x42d37b
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret