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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8c1b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x60]
mov eax, dword [ebx + 0x310]
call fcn.0044eb24
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 4]
call fcn.00408b10
cmp dword [ebp - 4], 0
je 0x4b8be5
mov eax, dword [ebx + 0x2f8]
cmp byte [eax + 0xb4], 0
jne 0x4b8aba
xor edx, edx
mov eax, dword [ebx + 0x2fc]
call fcn.004307b8
mov eax, dword [ebx + 0x2f8]
call fcn.004b6eb0
call sub.KERNEL32.DLL_GetTickCount_1
mov esi, eax
jmp 0x4b8a86
mov eax, dword [0x4c2dd0]
mov eax, dword [eax]
call fcn.00447a18
mov eax, dword [ebx + 0x2f8]
cmp byte [eax + 0xb4], 0
jne 0x4b8aba
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4b8ab8
cmp eax, 0x1388
jb 0x4b8a7a
jmp 0x4b8aba
jl 0x4b8a7a
mov esi, dword [ebx + 0x2f8]
cmp byte [esi + 0xb4], 0
je 0x4b8bba
mov eax, dword [ebx + 0x31c]
cmp byte [eax + 0x3c], 0
je 0x4b8af5
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 4]
mov edx, 0x4b8c30
call fcn.004048b0
mov edx, dword [ebp - 0x64]
mov eax, esi
call fcn.004b6f14
jmp 0x4b8aff
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004b6f14
mov eax, dword [0x4c2ed8]
cmp dword [eax], 0
je 0x4b8b77
lea eax, [ebp - 0x68]
mov edx, dword [ebx + 0x2f8]
add edx, 0x64
call fcn.00404808
mov edx, dword [ebp - 0x68]
mov eax, dword [0x4c2ed8]
mov eax, dword [eax]
call fcn.004049b0
je 0x4b8b77
lea edx, [ebp - 0x5c]
mov eax, dword [ebx + 0x2f8]
add eax, 0x48
mov ecx, 0x58
call fcn.00402d00
lea eax, [ebp - 0x168]
mov edx, dword [0x4c2ed8]
mov edx, dword [edx]
mov ecx, 0xff
call fcn.00404840
lea edx, [ebp - 0x168]
lea eax, [ebp - 0x40]
mov cl, 0x19
call fcn.0040304c
lea edx, [ebp - 0x5c]
mov eax, dword [ebx + 0x2f8]
call fcn.004b6648
push 0
lea eax, [ebp - 0x16c]
mov edx, dword [ebx + 0x2f8]
add edx, 0x64
call fcn.00404808
mov edx, dword [ebp - 0x16c]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.004b8550
xor edx, edx
mov eax, dword [ebx + 0x310]
call fcn.0044eb54
mov eax, dword [ebx + 0x310]
mov edx, dword [eax]
call dword [edx + 0xc4]
jmp 0x4b8be5
xor edx, edx
mov eax, dword [ebx + 0x310]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [0x4c27d8]
mov eax, dword [ebx + 0x310]
call fcn.0044eb54
mov dl, 1
mov eax, dword [ebx + 0x300]
call fcn.0044ea44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8c22
lea eax, [ebp - 0x16c]
call fcn.004045a4
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004045c8
lea eax, [ebp - 0x60]
call fcn.004045a4
lea eax, [ebp - 4]
call fcn.004045a4
ret
Function at 0x4b9da8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b9fc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4c2f0c]
cmp byte [eax], 0
jne 0x4b9fac
mov eax, dword [0x4c2f0c]
mov byte [eax], 1
mov eax, dword [0x4c2e10]
mov byte [eax], 0
mov eax, 0x4b9fdc
call fcn.004870b4
test al, al
je 0x4b9e2a
mov eax, 0x4b9fdc
call fcn.004871c0
call fcn.004be348
jmp 0x4b9e12
mov eax, 0x64
call fcn.004840e4
mov eax, 0x4b9fdc
call fcn.004870b4
test al, al
jne 0x4b9e08
mov eax, 0x64
call fcn.004840e4
mov dl, 1
mov eax, dword [esi + 0x2fc]
call fcn.004307b8
xor ebx, ebx
mov edx, dword [0x4c2a98]
mov edx, dword [edx]
lea eax, [ebp - 0x1c]
mov ecx, 0x4b9ff0
call fcn.004048b0
mov eax, dword [ebp - 0x1c]
call fcn.00409470
test al, al
jne 0x4b9e70
call fcn.004be5b0
test eax, eax
jg 0x4b9e70
mov eax, dword [0x4c2f0c]
mov byte [eax], 0
jmp 0x4b9fac
call fcn.004be348
mov dword [0x4c27e0], eax
mov dword [0x4c27e4], edx
cmp dword [0x4c27e4], 0
jne 0x4b9ee8
cmp dword [0x4c27e0], 0
jne 0x4b9ee8
mov edx, dword [0x4c2a98]
mov edx, dword [edx]
lea eax, [ebp - 0x20]
mov ecx, 0x4b9ff0
call fcn.004048b0
mov eax, dword [ebp - 0x20]
call fcn.00409470
test al, al
je 0x4b9efb
mov bl, 1
push 5
push 0
push 0
mov edx, dword [0x4c2a98]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x4b9ff0
call fcn.004048b0
mov eax, dword [ebp - 0x24]
call fcn.00404a64
push eax
push 0x4b9ffc
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4b9efb
mov bl, 1
push dword [0x4c27e4]
push dword [0x4c27e0]
call fcn.00486fcc
test bl, bl
je 0x4b9f9c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x4b9f36
push 0x4ba004
push 0x4ba018
call sub.user32.dll_FindWindowA
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [0x4c2dd0]
mov eax, dword [eax]
call fcn.00447a18
cmp dword [ebp - 4], 0
jne 0x4b9f40
cmp dword [ebp - 8], 0
je 0x4b9f13
mov eax, esi
call fcn.0045539c
push eax
mov ebx, dword [ebp - 8]
push ebx
call sub.user32.dll_SetParent
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.user32.dll_GetWindowRect
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [esi + 0x4c]
sub ecx, edx
sar ecx, 1
jns 0x4b9f79
adc ecx, 0
push ecx
mov edx, dword [esi + 0x48]
sub edx, eax
sar edx, 1
jns 0x4b9f86
adc edx, 0
push edx
push ebx
call sub.user32.dll_MoveWindow
mov dl, 1
mov eax, dword [esi + 0x2fc]
call fcn.004307b8
jmp 0x4b9fac
mov eax, dword [0x4c2e10]
mov byte [eax], 1
mov eax, dword [0x4c2f0c]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9fce
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004045c8
ret
Function at 0x402a40
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 0x4fe0]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0x4fd8]
mov ebx, dword [esi + 0x4fdc]
shr ecx, 0x1c
mov eax, edi
and eax, 0xf
shl ebx, 4
add ecx, ebx
mov edx, edi
shr edx, 4
shl eax, 0x1c
cmp edi, ecx
sbb ecx, ecx
and ecx, 0x10000000
push ecx
push eax
push edx
mov edx, dword [esi + 0x28]
push 4
push edx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x4fe0], eax
je 0x402aa2
mov dword [esi + 0x18], edi
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x44f424]
push 0x441ff0
push 0x441fe4
push edi
mov esi, eax
call fcn.00423e15
mov eax, dword [edi]
push esi
push esi
push str.LastError
push str._s_d__x__n
push eax
call fcn.00423e65
mov ecx, dword [edi]
push ecx
call fcn.0042406c
mov edx, dword [0x450440]
mov eax, dword [0x44f3ac]
add esp, 0x24
push 0x100
shl edx, 9
add edx, 0x44f440
push edx
push 0xdf
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x450440]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x402b1a
dec ecx
or ecx, 0xfffffff8
inc ecx
shl eax, 9
add eax, 0x44f440
push eax
mov dword [0x450440], ecx
call fcn.00417b20
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4039c0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4039ce
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x4fe0]
push eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esi + 0x10], 0
je 0x403a10
cmp dword [esi + 0x2c], 0
je 0x403a10
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esi + 0x48], 0x7e
lea eax, [esi + 0x48]
mov dword [esi + 0x10], 0
jne 0x403a10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x40c5c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e708
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x44aad4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
call fcn.00417d80
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x14], eax
mov ebx, esi
mov dword [esi], vtable.TAG_Plot.0
mov dword [esi + 0x10cc078], ecx
mov dword [esi + 0x1097a10], eax
call fcn.0040e920
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x41a840
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push esi
xor esi, esi
cmp word [0x450a68], si
push edi
mov edi, eax
jne 0x41a864
push 0x450a68
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x41a87a
push 0x5c
push 0x450a68
call fcn.00424547
add esp, 8
cmp eax, esi
je 0x41a87a
mov word [eax], si
mov eax, 0x450a68
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41a882
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x41a8a7
cmp word [0x450a6c], 0x5c
jne 0x41a8a7
mov word [0x450a6c], si
cmp edi, esi
je 0x41a8be
push edi
push 0x208
push 0x450a68
call fcn.00424dbd
add esp, 0xc
mov eax, dword [esp + 0x64]
push eax
push 0x208
push 0x450a68
call fcn.00424fdd
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], eax
add esp, 0xc
mov dword [esp + 8], 0x4c
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x450a68
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 0x88002c
mov word [esp + 0x40], si
mov word [esp + 0x42], si
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0x41a710
mov dword [esp + 0x50], esi
mov ecx, str.OPEN
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a97c
cmp dx, si
je 0x41a978
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a97c
add eax, 4
add ecx, 4
cmp dx, si
jne 0x41a956
xor eax, eax
jmp 0x41a981
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x41a992
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x41a996
mov eax, dword [esp + 0x58]
mov edx, str.SAVE
mov ecx, ebx
lea ecx, [ecx]
mov di, word [ecx]
cmp di, word [edx]
jne 0x41a9c6
cmp di, si
je 0x41a9c2
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x41a9c6
add ecx, 4
add edx, 4
cmp di, si
jne 0x41a9a0
xor ecx, ecx
jmp 0x41a9cb
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, esi
jne 0x41a9da
lea edx, [esp + 8]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
cmp eax, esi
jne 0x41a9e6
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
mov ecx, str.SAVE
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41aa16
cmp dx, si
je 0x41aa12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41aa16
add eax, 4
add ecx, 4
cmp dx, si
jne 0x41a9f0
xor eax, eax
jmp 0x41aa1b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x41aa6b
cmp word [esp + 0x42], si
mov edx, dword [esp + 0x14]
jne 0x41aa6b
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + ecx - 1]
xor eax, eax
cmp ecx, esi
jbe 0x41aa55
jmp 0x41aa40
mov si, word [edx]
add edx, 2
test si, si
jne 0x41aa40
add eax, 1
movzx esi, ax
cmp esi, ecx
jb 0x41aa40
add edx, 2
push edx
push 0x208
push 0x450a68
call fcn.00424fdd
add esp, 0xc
pop edi
mov eax, 0x450a68
pop esi
add esp, 0x4c
ret

Function at 0x42374b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44aad4]
jne 0x423755
repz ret
jmp fcn.00427ebb
Function at 0x4372c3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042b0d4
xor ebx, ebx
cmp dword [0x44f2f8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x437398
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x437303
xor eax, eax
jmp 0x43745c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4372fc
push eax
call fcn.0042b071
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f2f8], eax
call esi
push eax
call fcn.0042b071
mov dword [esp], 0x441f30
push edi
mov dword [0x44f2fc], eax
call esi
push eax
call fcn.0042b071
mov dword [0x44f300], eax
lea eax, [ebp - 8]
push eax
call fcn.00427c31
test eax, eax
pop ecx
pop ecx
je 0x437366
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428b62
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x437398
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042b071
cmp eax, ebx
pop ecx
mov dword [0x44f308], eax
je 0x437398
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042b071
pop ecx
mov dword [0x44f304], eax
mov eax, dword [0x44f304]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x437411
cmp dword [0x44f308], esi
je 0x437411
push eax
call fcn.0042b0dd
pop ecx
call eax
cmp eax, ebx
je 0x4373de
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44f308]
call fcn.0042b0dd
pop ecx
call eax
test eax, eax
je 0x4373de
test byte [ebp - 0x18], 1
jne 0x437411
lea eax, [ebp - 0xc]
push eax
call fcn.00427c68
test eax, eax
pop ecx
je 0x4373f9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428b62
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x437408
or dword [ebp + 0x10], 0x200000
jmp 0x437442
or dword [ebp + 0x10], 0x40000
jmp 0x437442
mov eax, dword [0x44f2fc]
cmp eax, esi
je 0x437442
push eax
call fcn.0042b0dd
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x437442
mov eax, dword [0x44f300]
cmp eax, esi
je 0x437442
push dword [ebp - 4]
push eax
call fcn.0042b0dd
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44f2f8]
call fcn.0042b0dd
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b17c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44aad4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043b111
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00425d60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43b1cb
cmp dword [ebp - 0x1c], 5
jb 0x43b1e3
jmp 0x43b1df
cmp dword [ebp - 0x10], 1
jne 0x43b1e3
cmp dword [ebp - 0x1c], 4
ja 0x43b1df
jne 0x43b1e3
cmp dword [ebp - 0x18], 0
jbe 0x43b1e3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x441fc4
call fcn.0043b002
test eax, eax
jge 0x43b204
mov byte [0x44f384], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042374b
add ebp, 0x78
leave
ret
Function at 0x10001880
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x10140664]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
push 0x5c
push edi
mov esi, ecx
call sub.MSVCR80.dll_strrchr
mov ecx, 1
sub ecx, edi
add eax, ecx
add eax, edi
push 0x20
push eax
lea edx, [esp + 0x1c]
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi]
mov edx, dword [eax + 0x294]
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call edx
mov eax, edi
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x100018d0
mov ecx, dword [str..pst]
mov dword [eax], ecx
mov dl, byte [0x1005d640]
push 0x1005d638
push edi
mov byte [eax + 4], dl
call sub.MSVCR80.dll_fopen
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000195b
xor edi, edi
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push edi
mov ecx, esi
call edx
mov eax, dword [esi + 0x13b4]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x13d8]
lea edx, [edi + ecx*2]
add edi, 1
fstp dword [eax + edx*4 + 0x24]
cmp edi, 5
jl 0x10001901
mov eax, dword [esi + 0x13b4]
mov edx, dword [esi + 0x13d8]
push ebx
lea ecx, [eax*8]
push 1
sub ecx, eax
lea eax, [edx + ecx*8]
push 0x38
push eax
call sub.MSVCR80.dll_fwrite
push ebx
call sub.MSVCR80.dll_fclose
add esp, 0x14
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005a96e
add esp, 0x24
ret 4

Function at 0x10001970
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push 0x2e
push ebp
mov ebx, ecx
call sub.MSVCR80.dll_strrchr
add esp, 8
test eax, eax
jne 0x1000198e
pop ebp
xor al, al
pop ebx
ret 8
push esi
push edi
mov esi, eax
mov edi, str..pst
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10001a17
push 0x1005d644
push ebp
call sub.MSVCR80.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
je 0x10001a17
push 2
push 0
push edi
call sub.MSVCR80.dll_fseek
push edi
call sub.MSVCR80.dll_ftell
push edi
mov esi, eax
call sub.MSVCR80.dll_rewind
add esp, 0x14
cmp esi, 0x38
push edi
ja 0x10001a0f
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x13d8]
lea esi, [eax*8]
sub esi, eax
add esi, esi
add esi, esi
push 1
add esi, esi
add ecx, esi
push 0x38
push ecx
call sub.MSVCR80.dll_fread
mov edx, dword [ebx + 0x13d8]
add esp, 0x10
cmp dword [esi + edx], 0x53423033
push edi
je 0x10001a20
call sub.MSVCR80.dll_fclose
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
call sub.MSVCR80.dll_fclose
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x10001a40
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x10140664]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x248]
push esi
push edi
push eax
push 0x1005d648
lea eax, [esp + 0x150]
push pe_nt_image_headers32
push eax
xor edi, edi
call sub.MSVCR80.dll__snprintf
add esp, 0x10
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001a9f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10001ae7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ecx]
lea eax, [esp + 0x3c]
push str..pst
push eax
call sub.MSVCR80.dll_strstr
add esp, 8
test eax, eax
je 0x10001ac9
add edi, 1
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x10001ab0
call ebp
cmp eax, 0x12
jne 0x10001ab0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x248]
pop edi
pop esi
xor ecx, esp
call fcn.1005a96e
add esp, 0x244
ret 4

Function at 0x10001b00
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x10140664]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x248]
push ebp
push esi
push edi
push eax
push 0x1005d648
lea eax, [esp + 0x154]
push pe_nt_image_headers32
push eax
mov esi, ecx
xor edi, edi
call sub.MSVCR80.dll__snprintf
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10001b62
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10001bcf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 0x3b4
nop
test byte [esp + 0x10], 0x10
je 0x10001bae
cmp byte [esp + 0x3c], 0x2e
je 0x10001bae
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001b85
sub eax, edx
cmp eax, 2
jbe 0x10001bae
lea eax, [esp + 0x3c]
push eax
push 0x1005d64c
push esi
call sub.MSVCR80.dll_sprintf
add esp, 0xc
add edi, 1
add esi, 0x20
lea ecx, [esp + 0x10]
push ecx
push ebp
call ebx
test eax, eax
jne 0x10001b70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10001b70
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1005a96e
add esp, 0x244
ret 4
Function at 0x10001bf0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x388
mov eax, dword [0x10140664]
xor eax, esp
mov dword [esp + 0x384], eax
push ebx
mov ebx, dword [esp + 0x390]
push esi
push ebx
push 0x1005d648
lea eax, [esp + 0x194]
push pe_nt_image_headers32
push eax
mov esi, ecx
call sub.MSVCR80.dll__snprintf
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x10001c54
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10001d50
push ebp
mov ebp, dword [esp + 0x3a0]
push edi
mov edi, dword [esp + 0x3a0]
lea eax, [esp + 0x40]
push str..pst
push eax
call sub.MSVCR80.dll_strstr
add esp, 8
test eax, eax
je 0x10001d1a
lea ecx, [esp + 0x40]
push ecx
push ebx
lea edx, [esp + 0x29c]
push 0x1005d650
push edx
call sub.MSVCR80.dll_sprintf
mov eax, dword [esi]
mov edx, dword [eax + 0x2c4]
add esp, 0x10
lea ecx, [esp + 0x294]
push ecx
push edi
mov ecx, esi
call edx
cmp al, 1
jne 0x10001d1a
push 0x3f
lea eax, [esp + 0x159]
push 0
push eax
mov byte [esp + 0x160], 0
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x4c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001cd5
sub eax, edx
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x15c]
push edx
call sub.MSVCR80.dll_strncpy
mov eax, dword [esi + 8]
mov ecx, dword [eax + ebp*4 + 0x18c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x12c]
add esp, 0xc
push 0xffffffffffffffff
lea eax, [esp + 0x158]
push eax
call edx
add edi, 1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10001c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10001c64
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop ebp
mov ecx, dword [esp + 0x38c]
pop esi
pop ebx
xor ecx, esp
call fcn.1005a96e
add esp, 0x388
ret 0xc
Function at 0x10006680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1005b688
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10140664]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call fcn.10005f80
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
xor edi, edi
or eax, 0xffffffff
cmp ecx, edi
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esi], vtable.VSTGUI::COptionMenu.0
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc4], eax
mov dword [esi + 0xd4], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0x40], edx
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], eax
mov dword [esi + 0xc0], 4
mov dword [esi + 0xa0], edi
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd8], edi
je 0x10006731
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x18

Function at 0x10008a20
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
xor esi, esi
call edi
test ax, ax
jge 0x10008a44
mov al, byte [0x10143b80]
neg al
sbb eax, eax
and eax, 3
add eax, 1
mov esi, eax
push 4
call edi
test ax, ax
jge 0x10008a50
or esi, 2
push 2
call edi
test ax, ax
jge 0x10008a6b
mov cl, byte [0x10143b80]
neg cl
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 4
or esi, ecx
push 0x10
call edi
test ax, ax
jge 0x10008a77
or esi, 8
push 0x11
call edi
test ax, ax
jge 0x10008a83
or esi, 0x10
push 0x12
call edi
test ax, ax
jge 0x10008a8f
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret