joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b76e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53849f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58a87c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00406eb0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00406eb0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00406eb0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00406eb0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00406eb0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00406eb0
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b7850
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x57e428
push 0x4f13c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x58a87c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x420]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00403750
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4b78c1
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00407500
add esp, 8
mov edx, esi
mov edi, dword [ebp + 0x41c]
mov ecx, edi
call fcn.004b79c0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b7909
test bl, bl
jne 0x4b798c
cmp edi, 0x1a
jne 0x4b798c
mov ecx, esi
call fcn.00403750
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4b792f
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00407500
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.004f1ee0
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.00407530
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00407120
mov ecx, esi
call fcn.00406d60
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004ef136
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x4b8260
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x4b82e2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4b82e2
test ecx, ecx
je 0x4b82de
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4b82a0
xor eax, eax
jmp 0x4b82e7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4b82f1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ef136
add esp, 0xc
ret 0xc
Function at 0x4c05a0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4c0605
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c05e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c0605
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004ef136
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004ef136
add esp, 8
ret 4
Function at 0x4c0780
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5395f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x58a87c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4c07c9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4c091b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4c08e6
test eax, eax
je 0x4c08e6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4c08e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4c086b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c085f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c086b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4c0879
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00406ed0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4c08e6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4c0824
jmp 0x4c08e9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4c0912
test edx, edx
je 0x4c090e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4c07e0
mov al, 1
jmp 0x4c091d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4c091b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ef136
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c1510
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov bh, byte [ecx + 0x100]
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
mov dl, byte [ecx + 0x101]
test ebp, ebp
je 0x4c1569
push esi
nop
inc bh
movzx esi, bh
mov bl, byte [esi + ecx]
add dl, bl
mov byte [esp + 0x18], dl
movzx edx, dl
movzx eax, byte [edx + ecx]
mov byte [esi + ecx], al
mov byte [edx + ecx], bl
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + ecx]
xor byte [edi + edx], al
inc edi
mov dl, byte [esp + 0x18]
cmp edi, ebp
jb 0x4c1530
pop esi
pop edi
pop ebp
mov byte [ecx + 0x101], bh
mov byte [ecx + 0x100], bh
pop ebx
pop ecx
ret

Function at 0x4c15d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
cmp dword [esp + 8], 0
mov eax, ecx
mov dword [esp], eax
je 0x4c1657
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4c1656
push ebx
push esi
push edi
mov edi, dword [eax]
xor dl, dl
xor cl, cl
xor eax, eax
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x4c15f1
mov word [edi + 0x100], 0
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esp + 0x18]
movzx esi, dl
mov dl, byte [ebx + edi]
movzx eax, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x1c], cl
movzx ecx, cl
add ecx, edi
movzx eax, byte [ecx]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx], dl
inc ebx
mov cl, byte [esp + 0x1c]
xor edx, edx
div ebp
cmp ebx, 0x100
jb 0x4c1610
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 0x104], ebp
pop ebp
pop ecx
ret 8
Function at 0x4c1bb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526be8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x58a87c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x58fd11], 0
jne 0x4c1d7f
push 0x55cc20
lea ecx, [ebp - 0x24]
call fcn.00406e70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.0042cfd0
mov ecx, eax
call fcn.0042d090
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00406de0
test edi, edi
je 0x4c1e2f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x55d73c
push edi
call esi
push 0x55d72c
push edi
mov dword [0x58fd38], eax
call esi
push 0x55d13c
push edi
mov dword [0x58fd30], eax
call esi
push str.GetSecurityInfo
push edi
mov dword [0x58fd4c], eax
call esi
push str.InitializeAcl
push edi
mov dword [0x58fd2c], eax
call esi
push 0x56350c
push edi
mov dword [0x58fd44], eax
call esi
push 0x563520
push edi
mov dword [0x58fd48], eax
call esi
push str.AddAce
push edi
mov dword [0x58fd14], eax
call esi
push str.DeleteAce
push edi
mov dword [0x58fd1c], eax
call esi
push str.SetSecurityInfo
push edi
mov dword [0x58fd34], eax
call esi
push str.OpenProcessToken
push edi
mov dword [0x58fd40], eax
call esi
push str.GetTokenInformation
push edi
mov dword [0x58fd24], eax
call esi
push str.CopySid
push edi
mov dword [0x58fd18], eax
call esi
push str.GetLengthSid
push edi
mov dword [0x58fd28], eax
call esi
push 0x55cf70
push edi
mov dword [0x58fd20], eax
call esi
cmp dword [0x58fd38], 0
mov dword [0x58fd3c], eax
je 0x4c1d92
cmp dword [0x58fd30], 0
je 0x4c1d92
cmp dword [0x58fd4c], 0
je 0x4c1d92
cmp dword [0x58fd2c], 0
je 0x4c1d92
cmp dword [0x58fd44], 0
je 0x4c1d92
cmp dword [0x58fd48], 0
je 0x4c1d92
cmp dword [0x58fd14], 0
je 0x4c1d92
cmp dword [0x58fd1c], 0
je 0x4c1d92
cmp dword [0x58fd34], 0
je 0x4c1d92
cmp dword [0x58fd40], 0
je 0x4c1d92
cmp dword [0x58fd24], 0
je 0x4c1d92
cmp dword [0x58fd18], 0
je 0x4c1d92
cmp dword [0x58fd28], 0
je 0x4c1d92
cmp dword [0x58fd20], 0
je 0x4c1d92
test eax, eax
je 0x4c1d92
mov byte [0x58fd11], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [0x58fd11], 0
mov dword [0x58fd38], 0
mov dword [0x58fd30], 0
mov dword [0x58fd4c], 0
mov dword [0x58fd2c], 0
mov dword [0x58fd44], 0
mov dword [0x58fd48], 0
mov dword [0x58fd14], 0
mov dword [0x58fd1c], 0
mov dword [0x58fd34], 0
mov dword [0x58fd40], 0
mov dword [0x58fd24], 0
mov dword [0x58fd18], 0
mov dword [0x58fd28], 0
mov dword [0x58fd20], 0
mov dword [0x58fd3c], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c6ca0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x58a87c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 8]
call fcn.00406d60
movzx eax, al
test eax, eax
jne 0x4c6ced
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413a50
add esp, 4
movzx edx, al
test edx, edx
jne 0x4c6cf2
jmp 0x4c6d96
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406ed0
mov dword [ebp - 4], 0
push 0x10
lea ecx, [ebp - 0x28]
push ecx
call fcn.004175c0
add esp, 8
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.004c9070
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406de0
push 0x10
lea edx, [ebp - 0x28]
push edx
call fcn.004175c0
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.00413a50
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4c6d87
lea edx, [ebp - 0x28]
push edx
call fcn.00413af0
add esp, 4
movzx eax, al
test eax, eax
je 0x4c6d87
lea ecx, [ebp - 0x28]
call fcn.00406d70
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ef136
mov esp, ebp
pop ebp
ret 4

Function at 0x4c92f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
call fcn.00406d60
movzx eax, al
test eax, eax
jne 0x4c9352
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413a50
add esp, 4
movzx edx, al
test edx, edx
je 0x4c9352
mov eax, dword [ebp + 8]
push eax
call fcn.00429070
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413a50
add esp, 4
movzx edx, al
test edx, edx
je 0x4c9352
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
call fcn.00406d70
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret 4
Function at 0x4d06b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b7f3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58a87c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x545044
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4d081b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4d081b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d081b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4d081b
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4d081b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d0814
push ebx
push esi
push eax
call fcn.004f1960
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4d0814
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4d0814
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4d07cb
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4d07cd
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x4d0800
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4d0800
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e3810
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x400
lea eax, [esp + 4]
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
lea eax, [esp + 0x40c]
push eax
push 0
push dword [esp + 0x410]
lea eax, [esp + 0xc]
push 0x200
push eax
call fcn.0040b670
push dword [eax + 4]
push dword [eax]
call fcn.004f6742
add esp, 0x1c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004ef136
add esp, 0x404
ret

Function at 0x4e7c10
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 8
xorps xmm3, xmm3
xorps xmm2, xmm2
mov edx, 0x183
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
lea eax, [ebx + 4]
nop dword [eax]
movd xmm1, dword [eax - 4]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea eax, [eax + 8]
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [eax - 8]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
sub edx, 1
jne 0x4e7c30
paddd xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
push edx
psrldq xmm0, 4
push 0x80
paddd xmm2, xmm0
movd ecx, xmm2
push 4
push edx
push edx
cmp ecx, 2
push 0x40000000
lea eax, [ecx - 2]
cmovbe eax, ecx
push esi
mov dword [ebx + 0xc18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4e7d11
push ebp
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push 0
push 0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0xc1c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x18], 0xc1c
je 0x4e7d09
mov eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x4e8c90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f88a
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x58a87c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004e8760
add esp, 8
mov dword [ebp - 4], 1
lea edx, [ebp - 0x234]
push edx
call fcn.00413940
add esp, 4
movzx eax, al
test eax, eax
jne 0x4e8d25
push 0x554a30
mov ecx, dword [ebp + 8]
call fcn.00406e70
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00406de0
mov eax, dword [ebp + 8]
jmp 0x4e8d98
push 0x20a
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.004f1ee0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.00406d70
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x554a30
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406e70
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00406de0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ef136
mov esp, ebp
pop ebp
ret
Function at 0x4ea080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fd51
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x58a87c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.004ea310
add esp, 4
mov dword [ebp - 4], 1
push str.config.ini
lea ecx, [ebp - 0x264]
call fcn.00406e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.004179c0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
call fcn.00406de0
lea ecx, [ebp - 0x234]
push ecx
call fcn.00413940
add esp, 4
movzx edx, al
test edx, edx
jne 0x4ea163
push 0x554a30
mov ecx, dword [ebp + 8]
call fcn.00406e70
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00406de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00406de0
mov eax, dword [ebp + 8]
jmp 0x4ea2ec
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004f1ee0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.00406d70
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x554a30
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
add ecx, 2
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x2b4]
mov ax, word [edx]
mov word [ebp - 0x2b6], ax
add dword [ebp - 0x2b4], 2
cmp word [ebp - 0x2b6], 0
jne 0x4ea1c1
mov ecx, dword [ebp - 0x2b4]
sub ecx, dword [ebp - 0x2bc]
sar ecx, 1
mov dword [ebp - 0x2c0], ecx
jne 0x4ea23a
push 0x554a30
mov ecx, dword [ebp + 8]
call fcn.00406e70
mov edx, dword [ebp - 0x2b0]
or edx, 1
mov dword [ebp - 0x2b0], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00406de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00406de0
mov eax, dword [ebp + 8]
jmp 0x4ea2ec
lea eax, [ebp - 0x2ac]
push eax
call fcn.004e9fa0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00406e70
mov byte [ebp - 4], 6
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x294]
push ecx
call fcn.004179c0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x27c]
call fcn.00406de0
lea edx, [ebp - 0x294]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406e30
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x294]
call fcn.00406de0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.00406de0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00406de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00406de0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ef136
mov esp, ebp
pop ebp
ret
Function at 0x4ea770
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 0x3c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.004f1ee0
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
cmp dword [ebp + 0x18], 0
je 0x4ea7a2
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 8], ecx
jmp 0x4ea7ab
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4ea804
cmp dword [ebp - 0x28], 0x20
jbe 0x4ea7f7
mov dword [ebp - 0xc], 1
jmp 0x4ea7fe
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 0xc]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4ea823
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x4ea823
push 0x2710
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret