joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fc6
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [0x4d7c48], eax
cmp word [eax], 0x7e
push edi
mov dword [ebp - 0x14], 0x100
mov byte [ebp - 1], bl
jne 0x406000
inc eax
inc eax
mov dword [0x4d7c48], eax
cmp word [eax], 0x49
sete byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.00405676
pop ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
sub esi, dword [ebp - 0x10]
mov eax, 0x400
sar esi, 1
cmp esi, eax
jle 0x406022
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ecx
call fcn.0043dcd9
push 6
push dword [ebp - 0xc]
push str.__gui_
call fcn.0043f0c4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
test al, al
je 0x406077
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0043dcd9
pop ecx
push dword [ebp + 8]
call edi
inc eax
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00413f99
add esp, 0xc
add esi, esi
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x828]
push eax
call fcn.00413fe3
add esp, 0xc
push dword [ebp - 0x10]
mov word [ebp + esi - 0x828], bx
mov byte [0x4db003], bl
call edi
mov esi, eax
inc esi
lea eax, [esi + 0x226]
push eax
lea ecx, [ebp - 8]
call fcn.004441bf
mov eax, dword [ebp - 8]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x4061b4
mov eax, dword [ebp - 8]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 8]
lea edi, [eax + ecx*2 + 2]
mov dword [ebp + 8], edi
lea edx, [eax + 2]
xor edi, edi
mov word [eax], 0x22
jmp 0x4060fd
mov ax, word [edx]
call fcn.0040f4c7
test al, al
je 0x4060fb
xor edi, edi
inc edi
inc edx
inc edx
cmp edx, dword [ebp + 8]
jb 0x4060ec
cmp di, bx
mov edx, dword [ebp - 8]
lea eax, [edx + 2]
mov dword [ebp + 8], eax
je 0x40611e
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp + 8], eax
inc ecx
push 0x1e
lea edi, [eax + ecx*2]
push 0x4bd41c
push edi
call fcn.00413fe3
push esi
push dword [ebp - 0x10]
add edi, 0x1e
push edi
call fcn.0040561e
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x4061b1
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
or eax, 0x10
push ebx
push 2
push eax
push 0xf01ff
lea eax, [ebp - 0x828]
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
je 0x4061b1
cmp byte [ebp - 1], bl
je 0x4061b1
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x828]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4061b1
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp + 8]
call esi
push edi
call esi
lea ecx, [ebp - 8]
call fcn.0043dd41
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061c1
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edx, esi
xor ebx, ebx
jmp 0x4061e3
call fcn.0040f4c7
test al, al
jne 0x4061eb
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x4061d8
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x4061fc
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.00413fe3
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x40621c
inc esi
inc esi
mov ax, word [esi]
call fcn.0040f4c7
test al, al
jne 0x40621a
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
je 0x40628a
push 0x10020
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp + 8], eax
je 0x40628a
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0xc8
push edi
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x406290
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406380
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, str.service:
lea edi, [ebp - 0x7f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x1f9
lea edi, [ebp - 0x7e6]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
call fcn.004040ba
mov edx, eax
mov ecx, edx
call fcn.00404181
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x4063ce
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.0040561e
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
push 0x64
xor edi, edi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov word [ebp + esi*2 - 0x7e8], di
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x406443
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x406443
push 0x64
push edi
push esi
call fcn.004040cd
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x4d610c], eax
mov dword [0x4d7c50], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4090a3
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4d7c44], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x4090e2
mov eax, dword [edi]
test eax, eax
je 0x4090e2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push dword [edi]
call ebx
and dword [edi], 0
cmp byte [esp + 0x10], 0
je 0x4090fa
push 1
push 0
push str.shutdown__a
call fcn.00405f3a
add esp, 0xc
push dword [0x4d7cc0]
call fcn.004041ff
cmp byte [esp + 0x10], 0
pop ecx
je 0x409126
push 3
pop esi
push 0
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
jne 0x409110
pop esi
pop ebx
ret
Function at 0x40f680
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x4d7d48
mov dword [0x4d7d48], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x4d7d4c], 5
je 0x40f6a8
xor eax, eax
leave
ret
mov eax, dword [0x4d7d50]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x40f6c3
dec eax
jne 0x40f744
mov ebx, 0x39000
jmp 0x40f6c8
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x4d7d10]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x4d7e78
push esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [0x4d7ce8]
cmp eax, 0xc0000022
jne 0x40f73f
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x4d7ce8]
push dword [0x4d7e78]
call fcn.0040f5b2
pop ecx
push dword [0x4d7e78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x4d7ce8]
cmp eax, edi
pop esi
jge 0x40f748
xor eax, eax
jmp 0x40f76c
push 0x1000
push ebx
push edi
push 6
push dword [0x4d7e78]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4d7e74], eax
neg eax
sbb eax, eax
and eax, dword [0x4d7e78]
pop edi
pop ebx
leave
ret

Function at 0x40f770
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40f789
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x40f79c
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x40f7e4
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x4d7e78]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
test ecx, 1
jne 0x40f7d1
xor eax, eax
jmp 0x40f7e6
mov esi, ecx
xor esi, edi
and esi, 0xfff
push eax
xor esi, ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
pop edi
ret

Function at 0x40f7e9
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x4d7e74]
call fcn.0040f770
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x4d7e78]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x40f81e
pop esi
ret
shr esi, 2
and esi, 0x3ff
mov esi, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
ret

Function at 0x40f90c
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f92a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret
Function at 0x40f92e
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
cmp word [eax], si
push edi
je 0x40f97c
cmp word [eax + 2], si
je 0x40f97c
cmp word [eax + 4], si
je 0x40f97c
cmp word [eax + 6], si
je 0x40f97c
cmp word [eax + 8], si
je 0x40f97c
cmp word [eax + 0xa], si
je 0x40f97c
cmp word [eax + 0xc], si
je 0x40f97c
cmp word [eax + 0xe], si
je 0x40f97c
lea ecx, [eax + 0x10]
jmp 0x40f977
cmp word [ecx], 0x5c
jne 0x40f975
mov word [ecx], 0x2f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x40f96a
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, esi
je 0x40f994
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40fa84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0xc0000000
push str.C:pe.debug.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fae0
push esi
push 2
push ebx
push ebx
push edi
call fcn.0043f027
mov esi, dword [ebp + 8]
add esp, 0x10
cmp byte [esi], bl
je 0x40fad8
push ebx
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40fc70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x80000000
push dword [ebp + 8]
call fcn.0040fbef
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x40fd07
push esi
push eax
call fcn.0040fc4e
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x40fca2
mov dword [esi], eax
jmp 0x40fca5
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40fccb
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.0044404a
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.0043dd41
test edi, edi
je 0x40fcfb
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [esi]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x40fcea
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.004aa0a0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x40fd0a
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret
Function at 0x410535
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x41054a
mov eax, dword [esp + 4]
mov dword [ecx + 0x10], eax
cmp word [eax], 0x5a4d
je 0x41054e
xor eax, eax
jmp 0x4105c3
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x410562
xor eax, eax
jmp 0x4105c2
add edx, eax
mov dword [ecx + 0x14], edx
cmp dword [edx], 0x4550
jne 0x41055e
mov si, word [edx + 0x16]
test si, 0x2002
movzx eax, si
je 0x41055e
test byte [edx + 0x16], 2
je 0x41055e
cmp word [edx + 0x14], 0xe0
jne 0x41055e
add edx, 0xf8
push edi
mov edi, dword [ecx + 0x14]
xor esi, esi
mov dword [ecx + 0x18], edx
cmp word [edi + 6], si
jbe 0x4105c1
add edx, 0x10
mov edi, dword [edx + 4]
add edi, dword [edx]
cmp edi, dword [esp + 0x10]
ja 0x4105bf
mov edi, dword [ecx + 0x14]
movzx edi, word [edi + 6]
inc esi
add edx, 0x28
cmp esi, edi
jl 0x4105a3
jmp 0x4105c1
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x410637
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [0x4d7bdc], esi
setne bl
test bl, bl
je 0x410697
push 0x28
push 8
push dword [0x4d81ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x41066b
push 2
call fcn.00443ed8
cmp eax, 4
pop ecx
je 0x410648
mov dword [esi + 4], 0xaa55
and dword [esi + 4], 0
mov dword [esi], 0x20
or dword [esi + 0x1c], 0xffffffff
add esi, 8
push esi
mov dword [esi + 0x10], 0xfff80000
push dword [0x4d7bdc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4106a1
mov dword [eax], esi
pop esi
mov al, bl
pop ebx
ret

Function at 0x4106a6
Capabilities:
Get thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, 0x4d7cf0
jne 0x4106d1
push dword [0x4d7bdc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x4106da
cmp dword [eax], ebx
je 0x4106da
mov edi, eax
jmp 0x4106da
cmp dword [ebp + 0xc], 0xffffffff
je 0x4106da
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x41072f
cmp byte [ebp + 8], bl
je 0x41072f
cmp dword [esi + 4], ebx
jle 0x41072f
mov eax, dword [esi]
cmp word [eax], bx
je 0x41072f
test byte [0x4d8480], 2
push eax
je 0x410714
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x41072f
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 0xc]
push ecx
add eax, eax
push eax
push dword [esi]
mov dword [ebp + 0xc], ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
dec eax
cmp eax, 0x1ffff
jb 0x41074d
push 0x10002
mov ecx, esi
mov dword [esi + 8], 0x10000
call fcn.004441e6
mov eax, dword [esi]
mov word [eax], bx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
leave
ret
Function at 0x410a95
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], esi
je 0x410acd
cdq
jmp 0x410ae0
cmp dword [ebp + 0xc], esi
je 0x410ada
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x410ae0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x410b0b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4d7bdc]
mov edi, 0x4d7cf0
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x410b35
cmp dword [eax], ebx
je 0x410b35
mov dword [ebp - 4], eax
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x410bf9
push 0x4d8d1c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], ebx
je 0x410bee
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0xc96
jge 0x410b73
add eax, 0x10c96
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004441e6
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea eax, [ecx + eax*2 + 0x1000]
mov word [eax], bx
mov edi, dword [ebp + 0xc]
cmp edi, 0xffff
ja 0x410ba4
push 0x400
push eax
push dword [ebp + 0xc]
mov edi, eax
push dword [0x4d7c7c]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [ebp + 0x10]
push ecx
push edi
push 0x7fd
push eax
call fcn.004aa411
add esp, 0x10
cmp eax, ebx
jge 0x410bc5
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x410be2
cmp byte [0x4d7d09], bl
je 0x410bee
push dword [ebp - 4]
push 1
call fcn.004106a6
pop ecx
pop ecx
push 0x4d8d1c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410bfe
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x4d7bdc]
mov edi, 0x4d7cf0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x410c1e
cmp dword [eax], ebx
je 0x410c1e
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x410caf
push 0x4d8d1c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], ebx
je 0x410ca4
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x896
jge 0x410c58
add eax, 0x10896
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004441e6
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x18]
push 0x7fd
push eax
call fcn.004aa411
add esp, 0x10
cmp eax, ebx
jge 0x410c7d
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x410c9a
cmp byte [0x4d7d09], bl
je 0x410ca4
push edi
push 1
call fcn.004106a6
pop ecx
pop ecx
push 0x4d8d1c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret
Function at 0x410e23
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + 0x1b]
push eax
lea ecx, [ebp + 8]
call fcn.004441bf
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xb]
push ecx
push eax
push ebx
mov dword [ebp - 0x18], eax
mov word [eax], di
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp + 8]
push edi
push edi
push 0x31
mov word [eax + esi*2 + 0x14], di
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call esi
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x10], edi
jge 0x410eef
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
movzx edx, word [ebp + 0x10]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
push edi
push dword [0x4d7f98]
push edx
push dword [ebp - 4]
push eax
push ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push edi
push str.EDIT
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push dword [ebp - 0x14]
mov edi, eax
push 0x30
push edi
call esi
push dword [ebp - 0x18]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xb1
push edi
call esi
lea ecx, [ebp + 8]
call fcn.0043dd41
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41120c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.004441bf
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x4112a0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.00410ae3
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x41128f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x411289
dec eax
jne 0x41128f
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x41128f
mov esi, eax
jmp 0x4112a3
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x411256
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0043dd41
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41183a
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41186b
xor eax, eax
jmp 0x4118da
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 4], 0x40
jne 0x4118cf
cmp word [ebp - 0x48], 0x5a4d
jne 0x4118cf
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4118cf
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x140]
push eax
push ebx
call esi
cmp dword [ebp - 4], edi
jne 0x4118cf
cmp dword [ebp - 0x140], 0x4550
jne 0x4118cf
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x411ae3
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x411b19
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x411b12
mov eax, dword [esp + 0x10]
test eax, eax
je 0x411b12
and dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret