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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x48a220]
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 0x419c81
cmp word [ebp - 0x210], 0
je 0x419c81
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00405c00
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0040ced0
cmp dword [ebp - 0x214], 8
jb 0x419d9f
push dword [ebp - 0x228]
jmp 0x419d97
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00419aa0
test al, al
je 0x419cd6
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.00406670
jmp 0x419d88
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x484488
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.00407110
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.00406670
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.00406790
cmp eax, 0xffffffff
je 0x419d54
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00407320
cmp dword [ebp - 0x214], 8
jb 0x419d6b
push dword [ebp - 0x228]
call fcn.004491f2
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 0x419d9f
push dword [ebp - 0x240]
call fcn.004491f2
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00449e44
mov esp, ebp
pop ebp
ret
Function at 0x419db0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x48a220]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x419ddd
mov ebx, dword [edi]
jmp 0x419ddf
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419e21
test al, 0x10
je 0x419e03
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x419e0d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040d2d0
cmp dword [edi + 0x14], 8
jb 0x419e37
mov eax, dword [edi]
jmp 0x419e39
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.004073d0
test eax, eax
jne 0x419e5e
test esi, esi
je 0x419ea6
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x419eac
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00419db0
test al, al
jne 0x419e71
xor bl, bl
jmp 0x419eac
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x419eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x419e99
mov ecx, edi
call fcn.00419a80
test al, al
jne 0x419eaa
test esi, esi
je 0x419ea6
mov ecx, ebx
call fcn.0041a660
mov dword [esi], eax
xor bl, bl
jmp 0x419eac
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x419ebf
push dword [esp + 0x14]
call fcn.004491f2
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret

Function at 0x419f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 8], 0
mov ebx, edx
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x419f9d
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.chrome_elf.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x41a00b
cmp esi, 0xffffffff
je 0x41a00b
mov dword [ebp - 4], esi
call fcn.00410050
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00410110
mov ecx, dword [ebp - 4]
add esp, 0x10
test ecx, ecx
je 0x41a00b
cmp ecx, 0xffffffff
je 0x41a00b
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a008
mov esi, dword [ebp - 8]
cmp esi, edi
jne 0x41a008
mov ecx, dword [ebp - 4]
jmp 0x41a00e
mov ecx, dword [ebp - 4]
or esi, 0xffffffff
test ecx, ecx
je 0x41a038
cmp ecx, 0xffffffff
je 0x41a038
call fcn.00410050
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call fcn.004101e0
push dword [ebp - 4]
call fcn.004100b0
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x48a220]
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 0x41a135
cmp eax, 0x104
ja 0x41a135
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.00405c00
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040ced0
mov ecx, eax
call fcn.0040d7d0
cmp esi, eax
je 0x41a0d0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406670
cmp dword [esp + 0x1c], 8
jb 0x41a0e3
push dword [esp + 8]
call fcn.004491f2
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 0x41a10d
push dword [esp + 0x38]
call fcn.004491f2
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x41a120
push dword [esp + 0x20]
call fcn.004491f2
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret

Function at 0x41a990
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48a220]
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 0x41aa3f
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 0x41aa3f
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00407110
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41a9f7
mov eax, dword [esi]
jmp 0x41a9f9
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x41aa2c
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x41aa2c
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00407110
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449e44
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.00449e44
mov esp, ebp
pop ebp
ret
Function at 0x41c740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea esi, [edi + 4]
mov ecx, esi
call fcn.00421280
add esp, 4
test al, al
jne 0x41c7c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41c7b4
cmp eax, 0x21
je 0x41c7b4
cmp eax, 5
jne 0x41c78d
mov eax, 0x3e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x41c795
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x421280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x4212a7
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x4212a2
mov eax, dword [ebx]
jmp 0x4212a4
mov eax, ebx
mov byte [eax], 0
call fcn.0040d830
test al, al
je 0x4212b9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00419ee0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4212b0
push 0x10000
call fcn.004486a9
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.0044f5e3
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x42134f
mov eax, dword [ebp + 8]
lea esp, [esp]
test ebx, ebx
je 0x421322
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.00406230
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x421365
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.0044f5e3
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x421300
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0044f70e
add esp, 4
test eax, eax
jne 0x421368
mov byte [ebp - 1], 1
jmp 0x42136c
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.0044f7a0
add esp, 4
test esi, esi
je 0x421382
push esi
call fcn.0044bdac
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421390
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00419db0
Function at 0x421d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x48a220]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x421e94
cmp byte [ebx + 0x45], 0
je 0x421e94
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x421d9d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00449e44
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 0x421e11
dec eax
je 0x421e15
sub eax, 2
je 0x421e6b
xor bl, bl
jmp 0x421e6d
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 0x421e4c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0044ca0d
add esp, 0x10
cmp esi, eax
jne 0x421e0d
cmp byte [ebx + 0x45], 0
je 0x421e6b
test esi, esi
jne 0x421dd0
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00411e40
jmp 0x421dd0
mov bl, 1
cmp dword [esp + 0x28], 0x10
jb 0x421e80
push dword [esp + 0x14]
call fcn.004491f2
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00449e44
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.00449e44
mov esp, ebp
pop ebp
ret

Function at 0x424700
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.004247d0
test al, al
je 0x42476d
mov eax, dword [0x48b650]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x424725
call fcn.00426000
mov ecx, eax
mov eax, dword [0x48e81c]
cmp dword [ecx + eax*4], 0
jne 0x42476d
push 0x74
call fcn.004491a1
add esp, 4
test eax, eax
je 0x42474a
push esi
mov ecx, eax
call fcn.004244e0
mov esi, eax
jmp 0x42474c
xor esi, esi
mov eax, dword [0x48b650]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x424765
call fcn.00426000
mov ecx, eax
mov eax, dword [0x48e81c]
mov dword [ecx + eax*4], esi
pop esi
ret
Function at 0x426000
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x48a220]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [0x48b650]
mov dword [esp + 4], 0
mov dword [esp + 4], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x42609d
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x42604e
mov ebx, eax
mov dword [esp + 0xc], ebx
jmp 0x42607d
cmp byte [0x48e7f0], 0
jne 0x426110
int3
mov ecx, ebx
mov edx, 0x48b650
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x42609d
push ebx
call esi
mov ebx, dword [0x48b650]
mov dword [esp + 0xc], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4260b2
cmp byte [0x48e7f0], 0
jne 0x42611e
int3
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0044bde0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.004486a9
add esp, 4
lea esi, [esp + 0x10]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret
push 1
call fcn.004495fc
push 1
call fcn.004495fc
push 1
call fcn.004495fc
int3

Function at 0x426130
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x48a220]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x48b650]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0044bdac
add esp, 4
mov edi, 0x100
jmp 0x426190
mov esi, dword [0x48e840]
xor dl, dl
test esi, esi
jle 0x4261c8
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x4261c3
mov eax, dword [esi*4 + 0x48e100]
test eax, eax
je 0x4261c3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x4261a0
dec edi
test edi, edi
jle 0x4261d1
test dl, dl
jne 0x426190
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret
Function at 0x428480
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 0x4284db
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x4284db
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4284b6
xor esi, esi
jmp 0x4284bd
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x4284c7
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x4284d0
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x428496
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 0x428680
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 0x42869e
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 + 4]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x42873b
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x4286d6
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 + 4]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x42873b
nop
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 + 4]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x428722
cmp dl, byte [eax]
jne 0x428722
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x428715
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x428746
test ecx, ecx
jle 0x428735
lea ebx, [esi + 4]
jmp 0x428737
mov edi, esi
cmp ebx, edi
jne 0x4286f0
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 + 4]
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 0x428780
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x428790
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42878d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x42878d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x4297c2
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x48a220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040d2d0
cmp dword [eax + 0x14], 8
jb 0x4297e9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x1c]
call fcn.00405d10
cmp byte [ebp + 0xc], 0
je 0x42981a
cmp dword [esi + 0x14], 8
jb 0x429808
mov eax, dword [esi]
jmp 0x42980a
mov eax, esi
push 0x100000
push 0x64
push eax
call fcn.0042f5f0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x429822
mov esi, dword [esi]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00449e44
mov esp, ebp
pop ebp
ret

Function at 0x42f1e1
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x46a324
push 1
push ebx
mov dword [ebp - 0xc], ebx
push 0x483c6c
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42f27a
push esi
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push 0x46a334
mov dword [ebp - 4], ebx
call fcn.0041c930
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [eax]
push esi
call dword [ecx + 0xc]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0041c950
test esi, esi
pop esi
js 0x42f26d
cmp byte [ebp + 8], bl
je 0x42f25c
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x42f26d
mov ecx, dword [ebp + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
mov bl, 1
mov dword [ebp - 4], eax
mov dword [ecx], edx
jmp 0x42f270
mov eax, dword [ebp - 4]
test eax, eax
je 0x42f27a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x42f287
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f8d8
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.0040fbc0
cmp eax, 1
jle 0x42f9b0
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.00411000
push dword [ebp - 4]
call fcn.00410a70
pop ecx
test al, al
je 0x42f956
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 0x42f983
lea ecx, [ebp - 4]
call fcn.004110b0
xor al, al
jmp 0x42fa16
cmp dword [ebp - 8], 0
jbe 0x42f998
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 0x42f998
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 0x42f965
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 4]
call fcn.004110b0
jmp 0x42fa14
push 9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x42f95e
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x484ba4
mov dword [ebp - 8], esi
call fcn.00428780
test al, al
jne 0x42f9dd
call fcn.0041a640
lea ecx, [ebp - 0xc]
call fcn.00428410
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.0042fb2d
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 0x42fb2d
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 0x42fb6d
mov al, byte [ecx]
add ecx, dword [ebp - 0x24]
cmp ecx, edx
jb 0x42fb68
mov al, byte [edx]
mov esp, ebp
pop ebp
ret