joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4835c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x4835d0
mov eax, esi
call fcn.0045ef60
jmp 0x4835dd
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 4]
test eax, eax
js 0x483638
je 0x483638
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401460
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x483635
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x483635
push 1
push 0x8000012f
call fcn.00401460
add esp, 8
push esi
call ebx
test eax, eax
jne 0x483614
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x483840
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.004a7170
mov eax, dword [esp + 0x11c70]
push ebx
push ebp
mov ebp, dword [esp + 0x11c74]
push esi
mov esi, ecx
movzx ecx, word [edx]
xor ebx, ebx
cmp ecx, 0x41
je 0x48386c
cmp ecx, 0x61
jne 0x4838ce
cmp word [edx + 2], bx
jne 0x4838ce
cmp word [edi], bx
jne 0x4838ce
cmp word [eax], bx
jne 0x4838ce
cmp word [esi], bx
jne 0x4838ce
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x4838af
cmp byte [ebp + 0xea], bl
jne 0x4838af
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4838ad
push esi
call fcn.004844a0
add esp, 4
test al, al
je 0x4838af
xor esi, esi
cmp byte [esp + 0x11c84], bl
je 0x4838c2
cmp esi, ebx
je 0x4838c2
mov dword [ebp + 0xc4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
cmp cx, bx
jne 0x4838f3
cmp word [edi], bx
jne 0x4838f3
cmp word [eax], bx
jne 0x4838f3
cmp word [esi], bx
jne 0x4838f3
mov eax, ebp
call fcn.00483a50
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x102c], 0x4af9bc
mov byte [esp + 0x1849], bl
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1850], ebx
mov dword [esp + 0x1854], ebx
mov dword [esp + 0x1858], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov dword [esp + 0x186c], ebx
mov dword [esp + 0x1870], ebx
call fcn.00484600
test eax, eax
je 0x483a02
test byte [esp + 0x10], 2
mov al, byte [esp + 0x11c80]
mov ecx, dword [esp + 0x11c88]
mov edx, dword [esp + 0x11c8c]
mov byte [esp + 0x1839], al
mov dword [esp + 0x1848], ecx
mov dword [esp + 0x184c], edx
je 0x483a0e
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x4839da
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x483a02
cmp byte [ebp + 0xea], bl
jne 0x4839d3
mov esi, dword [esp + 0x102c]
call fcn.00484510
cmp al, bl
jne 0x4839d3
mov eax, dword [esp + 0x102c]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x483a02
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1860], eax
je 0x4839f3
lea esi, [esp + 0x10]
mov dword [esp + 0x1860], eax
call fcn.00484a60
push ebx
lea ecx, [esp + 0x14]
push ecx
call fcn.00484b20
test eax, eax
jne 0x483a1e
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
lea edx, [esp + 0x10]
push edx
push 0x483ad0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
cmp byte [esp + 0x11c84], bl
je 0x483a38
cmp eax, ebx
je 0x483a38
mov dword [ebp + 0xc4], eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
Function at 0x484a60
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x484b1e
mov eax, dword [esi]
test eax, eax
je 0x484b1e
push edi
test al, 1
jne 0x484a8a
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x484aa6
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x484aa6
xor ecx, ecx
mov word [edi], cx
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x484ac1
mov eax, dword [esi + 0x1850]
lea edx, [esi + 0x1854]
push edx
push eax
call edi
test byte [esi], 0x20
je 0x484aff
mov edx, dword [esi + 0x1850]
lea ecx, [esp + 4]
push ecx
push edx
call edi
test eax, eax
je 0x484aff
movzx eax, byte [esi + 0x1828]
mov ecx, dword [esp + 4]
push eax
lea eax, [esi + 0x11a58]
call fcn.0045b610
add esp, 4
test eax, eax
jne 0x484aff
xor ecx, ecx
mov word [esi + 0x11a58], cx
test byte [esi], 8
pop edi
je 0x484b1e
mov eax, dword [esi + 0x1850]
push 0x101
lea edx, [esi + 0x11856]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
pop ecx
ret

Function at 0x485360
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c64
call fcn.004a7170
mov eax, dword [esp + 0x11c68]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x48540d
mov dword [esp + 0x1848], eax
lea eax, [esp + 8]
push eax
push 0x485ae0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x101c], 0x4af9bc
mov byte [esp + 0x1839], bl
mov dword [esp + 0x183c], ebx
mov dword [esp + 0x1840], ebx
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov byte [esp + 0x1854], cl
mov dword [esp + 0x1858], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1838], ebx
je 0x48540d
mov ecx, dword [0x4d4b04]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x48540d
push 1
push eax
call fcn.00401460
add esp, 8
mov eax, 1
pop ebx
add esp, 0x11c64
ret 4
Function at 0x485420
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x48543c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4d4b04]
push eax
push esi
mov ecx, edi
call fcn.004858e0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x485473
test eax, eax
jne 0x485477
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00485530
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x4854f6
test esi, esi
je 0x4854f6
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401460
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x4854d5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x4854d5
push 1
push 0x8000012f
call fcn.00401460
add esp, 8
push esi
call edi
test eax, eax
jne 0x4854b0
mov edx, dword [0x4d4b04]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4854ee
push 1
push eax
call fcn.00401460
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x485510
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00485530
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004856b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4856b0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.004a7170
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x485830
xor cl, cl
mov eax, edi
call fcn.00485850
test eax, eax
jne 0x4856e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4d4b04]
push eax
push ebp
mov ecx, edi
call fcn.004858e0
test eax, eax
je 0x485708
xor eax, eax
mov dword [0x4d9630], eax
jmp 0x48570d
mov eax, dword [0x4d9630]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1024], 0x4af9bc
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1864], ebx
mov dword [esp + 0x1868], ebx
cmp byte [esp + 0x11c7c], bl
je 0x485753
mov byte [esp + 0x1841], bl
cmp eax, ebx
je 0x48575b
mov byte [esp + 0x1841], 1
mov ecx, dword [0x4d962c]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x18]
push eax
push 0x4859b0
mov dword [esp + 0x1858], ecx
mov dword [esp + 0x1860], edx
call esi
mov eax, dword [esp + 0x1848]
cmp eax, ebx
je 0x485808
lea ecx, [esp + 0x10]
push ecx
push 0x484370
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4857c5
mov edx, dword [esp + 0x1848]
call fcn.00484ff0
mov dword [esp + 0x1848], esi
mov eax, dword [esp + 0x1848]
call fcn.004832f0
mov edx, dword [esp + 0x1848]
call fcn.00484ff0
mov edx, dword [0x4d4b04]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x485830
push 1
push eax
call fcn.00401460
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
mov eax, dword [0x4d9630]
cmp eax, ebx
je 0x485830
cmp eax, 1
setg al
mov dword [0x4d9630], ebx
cmp al, bl
je 0x485830
mov edx, ebp
call fcn.00484ff0
push ebx
mov ecx, edi
call fcn.004856b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c68
ret 4
Function at 0x4a1097
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d3de0]
jne 0x4a10a1
repz ret
jmp fcn.004a6e7f

Function at 0x4a42d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d3de0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0049d172
and dword [ebp - 0x14], 0
cmp dword [0x4d6df4], 0
mov dword [ebp - 0x18], eax
jne 0x4a4383
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a442b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4af100
push ebx
call edi
test eax, eax
je 0x4a442b
mov esi, dword [fcn.00498a50]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4d6df4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4d6df8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d6dfc], eax
call edi
push eax
call esi
mov dword [0x4d6e04], eax
test eax, eax
je 0x4a4383
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4d6e00], eax
mov eax, dword [0x4d6e00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00498a54]
cmp eax, ecx
je 0x4a43dc
cmp dword [0x4d6e04], ecx
je 0x4a43dc
push eax
call esi
push dword [0x4d6e04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a43dc
test ebx, ebx
je 0x4a43dc
call edi
test eax, eax
je 0x4a43d3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a43d3
test byte [ebp - 8], 1
jne 0x4a43dc
or dword [ebp + 0x10], 0x200000
jmp 0x4a440f
mov eax, dword [0x4d6df8]
cmp eax, dword [ebp - 0x18]
je 0x4a440f
push eax
call esi
test eax, eax
je 0x4a440f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a440f
mov eax, dword [0x4d6dfc]
cmp eax, dword [ebp - 0x18]
je 0x4a440f
push eax
call esi
test eax, eax
je 0x4a440f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d6df4]
call esi
test eax, eax
je 0x4a442b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a442d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1097
leave
ret
Function at 0x10350e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1007478
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103513f
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10074b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1035132
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1035141
xor eax, eax
pop esi
leave
ret 4

Function at 0x435540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
or ebp, 0xffffffff
jmp 0x435562
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435558
mov eax, 1
add ebx, ebx
jne 0x43557b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435570
jne 0x43558c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435570
xor ecx, ecx
sub eax, 3
jb 0x4355a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x435612
mov ebp, eax
add ebx, ebx
jne 0x4355ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4355b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4355dc
inc ecx
add ebx, ebx
jne 0x4355c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4355bd
jne 0x4355d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4355bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4355fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4355ed
jmp 0x43555e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4355fc
add edi, ecx
jmp 0x43555e
pop esi
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x435664
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x35000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x35094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x435619
mov ecx, edi
jns 0x435648
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3509c]
or eax, eax
je 0x43565e
mov dword [ebx], eax
add ebx, 4
jmp 0x435636
call dword [esi + 0x35098]
mov ebp, dword [esi + 0x350a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x435698
sub esp, 0xffffff80
jmp 0x411fa7
Function at 0x1000178a
Capabilities:
Get system information on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10001901
lea esi, [edi - 8]
mov ecx, dword [edi - 4]
mov eax, ecx
and eax, 0xfffffffc
mov edx, dword [0x10009b60]
cmp eax, edx
jbe 0x10001836
test cl, 2
jne 0x10001857
or edx, 1
mov dword [0x10009b60], edx
lea edx, [esi + eax]
mov ecx, dword [edi + eax - 4]
test byte [edi - 4], 1
jne 0x100017e6
mov edi, dword [esi]
add eax, edi
sub esi, edi
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [edi + 0xc], ebx
mov dword [ebx + 8], edi
and ecx, 0xfffffffc
cmp edx, dword [0x10009b8c]
je 0x100018c9
test byte [edx + ecx + 4], 1
mov dword [edx + 4], ecx
jne 0x1000180d
mov edi, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov dword [edx + 8], edi
add eax, ecx
mov ecx, dword [0x10009b9c]
mov dword [esi + 0xc], 0x10009b94
mov dword [esi + 8], ecx
mov dword [0x10009b9c], esi
mov dword [ecx + 0xc], esi
mov ecx, eax
or ecx, 1
mov dword [esi + 4], ecx
mov dword [esi + eax], eax
jmp 0x100018d9
or edx, 3
mov dword [0x10009b60], edx
shr ecx, 3
mov eax, dword [ecx*4 + 0x10009b5c]
mov dword [edi], eax
mov dword [ecx*4 + 0x10009b5c], esi
jmp 0x10001901
mov edi, dword [esi]
dec dword [0x10009eb0]
add eax, edi
sub dword [0x10009ec4], eax
cmp dword [0x10009efc], 0
jne 0x1000188f
mov eax, dword [0x10009ee0]
test eax, eax
jne 0x1000188a
mov ebx, esp
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebx + 4]
mov dword [0x10009ee0], eax
mov dword [0x10009efc], eax
sub esi, edi
cmp dword [0x10009f00], 0
jne 0x100018b9
mov eax, dword [0x10009ee4]
test eax, eax
jne 0x100018b4
mov edi, esp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 0x1c]
mov dword [0x10009ee4], eax
mov dword [0x10009f00], eax
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10001901
add eax, ecx
mov ecx, eax
or ecx, 1
mov dword [esi + 4], ecx
mov dword [0x10009b8c], esi
cmp eax, 0x10000
jb 0x10001901
test byte [0x10009b60], 2
je 0x100018ee
call fcn.10001dff
mov eax, dword [0x10009b8c]
mov eax, dword [eax + 4]
and eax, 0xfffffffc
cmp eax, dword [0x10009ea4]
jae 0x10001908
add esp, 0x24
pop esi
pop edi
pop ebx
ret
mov ecx, dword [0x10009ea8]
add esp, 0x24
pop esi
pop edi
pop ebx
jmp 0x10001919
push ebp
push ebx
push edi
push esi
mov edi, dword [0x10009ebc]
mov eax, dword [0x10009b8c]
mov ebp, dword [eax + 4]
and ebp, 0xfffffffc
mov eax, edi
sub eax, ecx
add eax, ebp
add eax, 0xffffffef
xor esi, esi
xor edx, edx
div edi
mov ebx, eax
dec ebx
imul ebx, edi
test ebx, ebx
jle 0x1000198e
xor esi, esi
xor ecx, ecx
call fcn.10001a0b
mov edi, eax
mov eax, dword [0x10009b8c]
add eax, ebp
cmp edi, eax
jne 0x1000198e
neg ebx
mov ecx, ebx
call fcn.10001a0b
xor esi, esi
xor ecx, ecx
call fcn.10001a0b
cmp eax, 0xffffffff
je 0x1000198e
sub edi, eax
je 0x1000198e
sub dword [0x10009ec8], edi
sub ebp, edi
or ebp, 1
mov eax, dword [0x10009b8c]
mov dword [eax + 4], ebp
xor esi, esi
inc esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001995
Capabilities:
Get system information on windows

Disassembly:
push edi
push esi
sub esp, 0x24
mov esi, ecx
cmp dword [0x10009ed8], 0
jne 0x100019c4
mov eax, dword [0x10009ee0]
test eax, eax
jne 0x100019bf
mov edi, esp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x10009ee0], eax
mov dword [0x10009ed8], eax
cmp dword [0x10009edc], 0
jne 0x100019ec
mov eax, dword [0x10009ee4]
test eax, eax
jne 0x100019e7
mov edi, esp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 0x1c]
mov dword [0x10009ee4], eax
mov dword [0x10009edc], eax
push 4
push 0x103000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
or eax, ecx
add esp, 0x24
pop esi
pop edi
ret
Function at 0x10001dff
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x10009b60]
test eax, eax
je 0x10001ef0
mov ecx, eax
and ecx, 0xfffffffd
mov dword [0x10009b60], ecx
shr eax, 3
lea eax, [eax*4 + 0x10009b5c]
mov dword [esp + 4], eax
mov eax, 0x10009b64
mov dword [esp], eax
mov ebx, dword [eax]
test ebx, ebx
je 0x10001ede
mov eax, dword [esp]
mov dword [eax], 0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [esp + 8], eax
mov esi, ecx
and esi, 0xfffffffe
mov ebp, dword [ebx + esi + 4]
mov eax, esi
mov edi, ebx
test cl, 1
jne 0x10001e77
mov eax, dword [ebx]
mov edi, ebx
sub edi, eax
add eax, esi
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [ecx + 0xc], edx
mov dword [edx + 8], ecx
add ebx, esi
and ebp, 0xfffffffc
cmp ebx, dword [0x10009b8c]
je 0x10001ec2
test byte [ebx + ebp + 4], 1
mov dword [ebx + 4], ebp
jne 0x10001e9c
add eax, ebp
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ecx + 0xc], edx
mov dword [edx + 8], ecx
mov ecx, dword [0x10009b9c]
mov dword [0x10009b9c], edi
mov dword [ecx + 0xc], edi
mov edx, eax
or edx, 1
mov dword [edi + 4], edx
mov dword [edi + 0xc], 0x10009b94
mov dword [edi + 8], ecx
mov dword [edi + eax], eax
jmp 0x10001ed0
add eax, ebp
or eax, 1
mov dword [edi + 4], eax
mov dword [0x10009b8c], edi
mov eax, dword [esp + 8]
mov ebx, eax
test eax, eax
jne 0x10001e47
mov ecx, dword [esp]
lea eax, [ecx + 4]
cmp ecx, dword [esp + 4]
jne 0x10001e31
jmp 0x10001f6c
xor eax, eax
lea ecx, [eax + 0x10009b94]
mov dword [ecx + 0xc], ecx
mov dword [ecx + 8], ecx
add eax, 8
cmp eax, 0x2f8
jne 0x10001ef2
mov dword [0x10009ea8], 0
mov dword [0x10009eb4], 0x10000
mov dword [0x10009eac], 0x100000
mov dword [0x10009ea4], 0x20000
or byte [0x10009ec0], 1
mov dword [0x10009b60], 0x48
mov dword [0x10009b8c], 0x10009b94
mov eax, dword [0x10009ee0]
test eax, eax
jne 0x10001f67
lea esi, [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x10009ee0], eax
mov dword [0x10009ebc], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10001fac
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x10001ffc
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [esp + 0x18]
mov ebx, esp
push 0
push ebx
push edi
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
sete al
cmp dword [ebx], edi
setne cl
or cl, al
mov eax, ecx
xor al, 1
test cl, cl
jne 0x10001ff3
cmp byte [esp + 0x1c], 0
je 0x10001ff3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
add esp, 4
pop esi
pop edi
pop ebx
ret 0xc
xor eax, eax
ret 0xc
Function at 0x100026a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edi, esp
push edi
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebp, eax
test eax, eax
je 0x100026db
mov eax, dword [esp + 0x1c]
mov edx, edi
mov edi, esi
mov ecx, ebx
xchg esi, eax
rep movsb byte es:[edi], byte [esi]
xchg esi, eax
push edx
push dword [esp + 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebp, ebp
setne al
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100026e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebp, esp
push ebp
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
test eax, eax
je 0x10002724
push ebx
push 0x90
push edi
call fcn.10004cf6
add esp, 0xc
push ebp
push dword [esp + 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
setne al
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10002731
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebp, esp
push ebp
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
test eax, eax
je 0x1000276d
push ebx
push 0xcc
push edi
call fcn.10004cf6
add esp, 0xc
push ebp
push dword [esp + 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
setne al
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10003440
Capabilities:
Read .ini file

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [esp + 0x14]
mov word [ecx + 4], 0
xor ecx, ecx
mov edi, str.Walk
mov eax, 0x6dc190
push ecx
push edi
call eax
add esp, 8
mov dword [esi], eax
mov eax, 0x42c1a0
mov ecx, ebx
call eax
mov edx, str.._settings.ini
mov ecx, 0x200
mov ebx, 0x7fcbc8
mov eax, str.Bind
push edx
push ecx
push ebx
push 0x100074c2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
sub esp, 0x28
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x10007180]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov edi, 0x733458
mov dword [esp], edi
mov dword [esp + 0x24], 1
mov eax, 0x42c8b0
mov ecx, dword [esp + 0x3c]
call eax
mov ebp, str.WallCover
mov eax, str.._settings.ini
push eax
mov eax, 0x200
push eax
push ebx
push 0x1000764a
push ebp
mov eax, str.Bind
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x42d8e0
push ebx
push edi
call eax
add esp, 8
mov ebx, eax
xor eax, eax
push eax
push ebp
mov eax, 0x6dc190
call eax
add esp, 8
mov edx, 0x42c500
mov ecx, dword [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x2c]
movzx eax, al
mov eax, dword [edx + eax*4]
mov byte [eax + 0x2c], bl
mov eax, 0x42c1f0
call eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4