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

Disassembly:
mov eax, 0x42eb59
call fcn.00414ad0
sub esp, 0x60
mov eax, dword [0x43dde0]
push ebx
push esi
push 7
pop esi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x65], bl
mov dword [ebp - 0x4c], esi
call fcn.004010ca
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
call fcn.004010ca
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.0040f80f
test al, al
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
je 0x405322
push 0x43eda0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404963
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401476
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040111c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x405306
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x405322
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f5fd
cmp al, bl
pop ecx
pop ecx
mov byte [ebp - 0x65], al
jne 0x405392
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40532e
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x405392
lea ecx, [ebp - 0x48]
call fcn.0040f88f
push ebx
lea eax, [ebp - 0x48]
push eax
push 0x270f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x43ed68
mov byte [ebp - 4], 3
call fcn.00401506
call fcn.0040fc4b
add esp, 0x28
cmp al, bl
je 0x405386
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040f917
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f5fd
pop ecx
pop ecx
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040f8e8
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040111c
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040111c
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x65]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004145de
pop esi
pop ebx
leave
ret

Function at 0x4054ce
Capabilities:
Resume thread

Disassembly:
mov eax, 0x42eb88
call fcn.00414ad0
sub esp, 0x1b8
mov eax, dword [0x43dde0]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
xor al, al
test esi, esi
je 0x405559
push edi
push 0
call fcn.00405008
mov ecx, eax
call fcn.0040e314
cmp byte [ebp + 0xc], 0
mov edi, dword [esi + 0x28]
jne 0x405546
push 0
push esi
lea ecx, [ebp - 0x1c4]
call fcn.00411747
and dword [ebp - 4], 0
push 0x43d198
lea ecx, [ebp - 0x1c4]
call fcn.004017d4
lea ecx, [ebp - 0x1c4]
call fcn.00424bbd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c4]
call fcn.004113fa
jmp 0x405556
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.004145de
leave
ret
Function at 0x4096c5
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x42ee69
call fcn.00414ad0
sub esp, 0xa4
push esi
push edi
push 1
push 2
lea ecx, [ebp - 0xb0]
mov byte [ebp - 0xd], 0
call fcn.0040486b
push 0x430e0c
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push str.SELECT__Value__FROM__Property__WHERE__Property_._Property_
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004039d6
pop ecx
pop ecx
push eax
call fcn.00403b1e
pop ecx
pop ecx
push eax
call fcn.004039d6
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.004048dc
cmp dword [eax + 0x18], 8
jb 0x40973b
mov esi, dword [eax + 4]
jmp 0x40973e
lea esi, [eax + 4]
lea ecx, [ebp - 0x14]
call fcn.00401aaa
push eax
push esi
push dword [ebp + 8]
call sub.msi.dll_MsiEnumClientsA
push edi
push 1
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.0040111c
cmp esi, edi
jne 0x409817
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
cmp eax, edi
jne 0x40980f
push 1
call sub.msi.dll_MsiDatabaseExportA
mov dword [ebp + 8], eax
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00401aaa
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x409802
lea eax, [ebp + 0xc]
push eax
push 0x430d88
push 1
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
call sub.msi.dll_MsiRecordSetStreamA
cmp eax, 0xea
jne 0x409802
inc dword [ebp + 0xc]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.00408b14
mov esi, dword [ebp - 0x20]
lea eax, [ebp + 0xc]
push eax
push esi
push 1
push dword [ebp + 8]
mov byte [ebp - 4], 3
call sub.msi.dll_MsiRecordSetStreamA
cmp eax, edi
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x4097fa
mov eax, dword [ebp + 0xc]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea eax, [esi + eax*2]
push eax
push esi
call fcn.00407d75
lea ecx, [ebp - 0x24]
call fcn.0040c549
cmp dword [ebp + 8], edi
je 0x40980f
push dword [ebp + 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewGetErrorW
cmp dword [ebp - 0x14], edi
pop edi
pop esi
je 0x409826
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00402b69
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x4307d0
call fcn.004137d6
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40bde4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40bdf9
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40be0b
xor eax, eax
jmp 0x40be3d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40be2f
cmp esi, eax
jae 0x40be07
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40be21
cmp esi, eax
jae 0x40be07
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40de3d
Capabilities:
Get file version info

Disassembly:
mov eax, 0x42f36c
call fcn.00414ad0
sub esp, 0xd0
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
mov byte [ebp - 0x11], 0
call fcn.0040c71e
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x40de75
mov eax, dword [edi]
jmp 0x40de77
mov eax, edi
lea ecx, [ebp - 0x3c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40dffc
push ebx
lea ecx, [ebp - 0x24]
call fcn.0040dbba
push ebx
push 0
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00414b30
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x40deae
mov edi, dword [edi]
push dword [ebp - 0x20]
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40dff4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 8]
push eax
push 0x4310e8
push dword [ebp - 0x20]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40dff4
mov esi, dword [ebp + 8]
push 1
push 2
lea ecx, [ebp - 0xdc]
call fcn.0040486b
xor eax, eax
mov ax, word [esi + 0xa]
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
push eax
call fcn.0040c62c
mov edi, 0x4310cc
push edi
push eax
call fcn.004039d6
pop ecx
pop ecx
xor ecx, ecx
mov cx, word [esi + 8]
push ecx
mov ecx, eax
call fcn.0040c62c
lea eax, [ebp - 0xdc]
push edi
push eax
call fcn.004039d6
xor eax, eax
mov ax, word [esi + 0xe]
pop ecx
pop ecx
lea ecx, [ebp - 0xdc]
push eax
call fcn.0040c62c
push edi
push eax
call fcn.004039d6
pop ecx
pop ecx
xor ecx, ecx
mov cx, word [esi + 0xc]
push ecx
mov ecx, eax
call fcn.0040c62c
lea ecx, [ebp - 0x38]
call fcn.0040dbf7
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.004048dc
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0040dde6
push 0
push 1
lea ecx, [ebp - 0x5c]
mov bl, al
mov byte [ebp - 4], 3
call fcn.0040111c
test bl, bl
je 0x40dfc8
push 0x10
call fcn.00424415
pop ecx
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x40dfb9
lea eax, [ebp - 0x38]
push eax
call fcn.0040dc07
jmp 0x40dfbb
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040c71e
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x38]
call fcn.0040c549
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.00402b69
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x4307d0
call fcn.004137d6
lea ecx, [ebp - 0x24]
call fcn.0040c549
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40ef3f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x43dde0]
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
mov dword [ebp - 4], eax
jne 0x40ef9d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40ef9d
lea eax, [ebp - 0x414]
push eax
push 0
push 0x431360
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40ef9d
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0xc]
call fcn.00403fa7
push 0xffffffffffffffff
push 0
add esi, 0xc
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00401476
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 0x14], eax
pop esi
setne al
call fcn.004145de
leave
ret 4

Function at 0x40f4bb
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x42f553
call fcn.00414ad0
sub esp, 0x34
mov eax, dword [0x43dde0]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
push edi
xor edi, edi
cmp eax, edi
mov byte [ebp - 0x2d], 0
je 0x40f4e9
mov dword [ebx], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, edi
je 0x40f4fa
mov dword [esi], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x17
push edi
push str.MSXML.DOMDOCUMENT
mov ecx, ebx
call fcn.0040f1ac
test eax, eax
jl 0x40f5c5
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x40f521
mov eax, dword [edi]
jmp 0x40f523
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
and dword [ebp + 8], 0
cmp dword [esi + 0x18], 8
jb 0x40f536
mov edi, dword [edi]
and word [ebp - 0x40], 0
push edi
lea ecx, [ebp - 0x40]
call fcn.0040f20a
mov eax, dword [ebx]
mov ecx, dword [eax]
and dword [ebp - 4], 0
lea edx, [ebp + 8]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + pe_nt_image_headers32]
xor esi, esi
cmp word [ebp + 8], si
je 0x40f5ac
mov eax, dword [ebx]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xb4]
test eax, eax
jl 0x40f5ac
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.004010ca
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0040f2f3
push esi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], 1
call fcn.0040111c
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [ebp - 0x2d], 0
jne 0x40f5e1
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebx]
cmp eax, edi
je 0x40f5d3
mov dword [ebx], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
cmp eax, edi
je 0x40f5e1
mov dword [esi], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x2d]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004145de
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f917
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], 8
jb 0x40f928
mov eax, dword [esi + 4]
jmp 0x40f92b
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f945
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ebx
push esi
call fcn.00401476
mov bl, 1
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x411200
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42f792
call fcn.00414ad0
sub esp, 0x244
mov eax, dword [0x43dde0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x21d], 0
mov dword [ebp - 4], edi
call fcn.0040dd7b
mov dword [ebp - 0x224], edi
push 0x104
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4112d4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, 0x4318c8
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00415128
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x250]
call fcn.00404849
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 3
call fcn.0040de3d
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x250]
mov bl, al
mov byte [ebp - 4], 2
call fcn.0040111c
test bl, bl
je 0x4112d4
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x234]
push eax
call fcn.0040c536
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov byte [ebp - 0x21d], 1
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.00410f29
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.0040c719
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x21d]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004145de
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413d50
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4342f8
call fcn.00414b90
mov edi, 0x94
mov eax, edi
call fcn.00415a50
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4412a8], ecx
mov eax, dword [esi + 4]
mov dword [0x4412b4], eax
mov edx, dword [esi + 8]
mov dword [0x4412b8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4412ac], esi
cmp ecx, 2
je 0x413db0
or esi, 0x8000
mov dword [0x4412ac], esi
shl eax, 8
add eax, edx
mov dword [0x4412b0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x413deb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413deb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413e03
cmp eax, 0x20b
je 0x413df0
mov dword [ebp - 0x1c], esi
jmp 0x413e17
cmp dword [ecx + 0x84], 0xe
jbe 0x413deb
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x413e11
cmp dword [ecx + 0x74], 0xe
jbe 0x413deb
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00419882
pop ecx
test eax, eax
jne 0x413e2b
push 0x1c
call fcn.00413d2c
pop ecx
call fcn.00419779
test eax, eax
jne 0x413e3c
push 0x10
call fcn.00413d2c
pop ecx
call fcn.004194d1
mov dword [ebp - 4], esi
call fcn.004192d3
test eax, eax
jge 0x413e55
push 0x1b
call fcn.00413d07
pop ecx
call fcn.00419234
mov dword [0x442c80], eax
call fcn.004190ca
mov dword [0x44128c], eax
call fcn.00419034
test eax, eax
jge 0x413e7a
push 8
call fcn.00413d07
pop ecx
call fcn.00418e01
test eax, eax
jge 0x413e8b
push 9
call fcn.00413d07
pop ecx
push 1
call fcn.004163d3
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x413ea1
push eax
call fcn.00413d07
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00418dbb
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x413ec2
movzx eax, word [ebp - 0x40]
jmp 0x413ec5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00423ae7
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413ee3
push edi
call fcn.00416500
call fcn.00416522
jmp 0x413f15
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00414bcb
ret
Function at 0x415c0e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x415c2b
call fcn.00415408
mov dword [eax], 0x16
xor eax, eax
jmp 0x415c95
push esi
push 0x8c
push 1
call fcn.004168ab
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x415c80
push esi
call fcn.0041957f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x415c5e
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x415b79
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x415c94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00414d7b
test ebx, ebx
pop ecx
je 0x415c92
push ebx
call fcn.0041541a
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41643d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4343e0
call fcn.00414b90
push 8
call fcn.0041718f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4412e8], esi
jne 0x416471
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4412e4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4412e0], al
cmp dword [ebp + 0xc], edi
jne 0x4164bb
cmp dword [0x442c78], edi
je 0x4164ab
mov eax, dword [0x442c74]
sub eax, 4
mov dword [0x442c74], eax
cmp eax, dword [0x442c78]
jb 0x4164ab
mov eax, dword [eax]
cmp eax, edi
je 0x41648c
call eax
jmp 0x41648c
push 0x43d0c8
mov eax, 0x43d0c0
call fcn.004163bb
pop ecx
push 0x43d0d4
mov eax, 0x43d0cc
call fcn.004163bb
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4164ec
cmp dword [ebp + 0x10], edi
jne 0x4164fa
mov dword [0x4412e8], esi
push dword [ebp + 8]
call fcn.00416379
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4164f9
push 8
call fcn.004170da
pop ecx
ret
call fcn.00414bcb
ret
Function at 0x4167ba
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00415a50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416855
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4412a8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x416855
cmp eax, 1
je 0x416876
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416855
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416822
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416851
xor eax, eax
inc eax
jmp 0x416895
cmp edi, eax
jae 0x416859
xor eax, eax
jmp 0x416895
cmp eax, esi
jae 0x416860
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4412a8]
jmp 0x416879
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418aa7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43dde0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43e2f0]
je 0x418adc
inc eax
cmp eax, 0x13
jb 0x418acd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43e2f0]
jne 0x418c02
mov eax, dword [0x441290]
cmp eax, 1
je 0x418bda
cmp eax, edx
jne 0x418b0c
cmp dword [0x43ddd0], 1
je 0x418bda
cmp ecx, 0xfc
je 0x418c02
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418b42
lea eax, [ebp - 0x80]
push 0x434fc4
push eax
call fcn.0041a920
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00414cf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x418b76
mov eax, edi
push eax
call fcn.00414cf0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x434fc0
push edi
call fcn.0041ec80
add esp, 0x10
push edi
call fcn.00414cf0
push dword [esi + 0x43e2f4]
mov ebx, eax
call fcn.00414cf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00415a50
mov ebx, esp
push 0x434fa4
push ebx
call fcn.0041a920
push edi
push ebx
call fcn.0041a930
push 0x434fa0
push ebx
call fcn.0041a930
push dword [esi + 0x43e2f4]
push ebx
call fcn.0041a930
push 0x12010
push 0x434f78
push ebx
call fcn.0041f9ac
add esp, 0x2c
jmp 0x418c02
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43e2f4]
push dword [esi]
call fcn.00414cf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004145de
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4190ca
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x441664]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x419113
call ebp
mov esi, eax
cmp esi, ebx
je 0x4190f9
mov dword [0x441664], 1
jmp 0x419118
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41910e
push 2
pop eax
mov dword [0x441664], eax
jmp 0x419113
mov eax, dword [0x441664]
cmp eax, 1
jne 0x419170
cmp esi, ebx
jne 0x41912b
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41912b
xor eax, eax
jmp 0x419217
cmp word [esi], bx
mov eax, esi
je 0x419140
inc eax
inc eax
cmp word [eax], bx
jne 0x419132
inc eax
inc eax
cmp word [eax], bx
jne 0x419132
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00414e93
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x419163
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x419217
push ebp
push esi
push edi
call fcn.00413f30
add esp, 0xc
jmp 0x419155
cmp eax, 2
je 0x419179
cmp eax, ebx
jne 0x419124
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x419124
cmp byte [ebp], bl
mov esi, ebp
je 0x4191af
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x419124
push esi
add edi, eax
call fcn.00414cf0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41918c
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00414e93
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x419228
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x419209
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41921e
push edi
call fcn.00414cf0
push esi
lea edi, [edi + eax + 1]
call fcn.004145ec
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4191cf
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00414d7b
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x419124