joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10074025
Capabilities:
Hide graphical window

Disassembly:
and dword [ecx + 0x34], 0
push 0
push dword [ecx + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x100744fa
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
movzx edi, byte [esp + 0x14]
push 0
push 0xa0
call esi
push 0
push 0xa1
mov ebx, eax
call esi
cmp edi, ebx
jne 0x10074525
push 2
pop eax
jmp 0x1007452f
xor ecx, ecx
cmp edi, eax
sete cl
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
ret

Function at 0x10074533
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
shr eax, 8
test al, al
je 0x1007454d
mov edi, 0x80
push 0x10
call esi
shr eax, 8
test al, al
je 0x1007455b
or edi, 0x40
push 0x12
call esi
shr eax, 8
test al, al
je 0x1007456c
or edi, 0x200
push 4
call esi
shr eax, 8
test al, al
je 0x1007457d
or edi, 0x800
push 2
call esi
shr eax, 8
test al, al
je 0x1007458e
or edi, 0x1000
push 1
call esi
shr eax, 8
test al, al
je 0x1007459f
or edi, 0x400
push 5
call esi
shr eax, 8
test al, al
je 0x100745b2
mov eax, dword [0x100fea80]
or edi, dword [eax + 0xc]
push 6
call esi
shr eax, 8
test al, al
je 0x100745c5
mov eax, dword [0x100fea80]
or edi, dword [eax + 0x10]
mov eax, edi
pop edi
pop esi
ret

Function at 0x100749eb
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp + 0x84], eax
mov eax, dword [ebp + 0x90]
push ebx
push 4
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
xor ebx, ebx
add esp, 0xc
push ebx
mov word [ebp - 0x6c], bx
mov byte [ebp - 0x6a], bl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ebx
push 2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x20
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x20
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop ebx
call fcn.100b4c22
add ebp, 0x88
leave
ret
Function at 0x10074a61
Capabilities:
Log keystrokes

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push 0x10002
push dword [0x101004d4]
call sub.java.dll__JNU_GetEnv_8
mov esi, eax
mov eax, dword [0x100ffb50]
push 0x100
mov dword [ebp - 0x80], eax
xor ebx, ebx
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x7c], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [0x100ffb58], ebx
jne 0x10074ae0
mov eax, dword [esi]
push str.sun_awt_ExtendedKeyCodes
push esi
call dword [eax + 0x18]
mov edi, eax
cmp edi, ebx
je 0x10074bec
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x54]
push edi
mov dword [0x100ffb58], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x5c]
cmp dword [0x100ffb54], ebx
jne 0x10074b0e
mov eax, dword [esi]
push str._I_I
push str.getExtendedKeyCodeForChar
push dword [0x100ffb58]
push esi
call dword [eax + 0x1c4]
mov dword [0x100ffb54], eax
cmp eax, ebx
je 0x10074bec
xor edi, edi
mov esi, 0x100fea94
push ebx
xor eax, eax
push edi
mov dword [esi - 0xc], edi
mov dword [esi - 4], ebx
mov word [esi], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp eax, ebx
jne 0x10074b34
mov dword [esi - 8], ebx
jmp 0x10074bdc
push dword [ebp - 0x80]
lea ecx, [ebp + 0x88]
push 0
push 0x10
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
lea ebx, [ebp + edi - 0x78]
push edi
mov dword [esi - 8], eax
mov byte [ebx], 0x80
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x10074b8a
cmp dword [esi - 4], 0
mov ax, word [ebp + 0x88]
mov word [esi], ax
jne 0x10074bd7
movzx eax, ax
push eax
push dword [0x100ffb54]
push dword [0x100ffb58]
push dword [ebp - 0x7c]
call fcn.10073b7a
add esp, 0x10
jmp 0x10074bc4
cmp eax, 0xffffffff
jne 0x10074bc9
mov ax, word [ebp + 0x88]
mov word [esi], ax
lea eax, [ebp - 0x78]
push eax
call fcn.100749eb
pop ecx
push 0x60
mov eax, 0x100d0b98
pop ecx
cmp word [ebp + 0x88], cx
je 0x10074bc1
add eax, 8
movzx ecx, word [eax]
test cx, cx
jne 0x10074bab
jmp 0x10074bd7
mov eax, dword [eax + 4]
mov dword [esi - 4], eax
jmp 0x10074bd7
test eax, eax
jne 0x10074bd7
lea eax, [ebp - 0x78]
push eax
call fcn.100749eb
pop ecx
mov byte [ebx], 0
xor ebx, ebx
inc edi
add esi, 0x10
cmp edi, 0x100
jb 0x10074b15
mov ecx, dword [ebp + 0xa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4c22
add ebp, 0xac
leave
ret
Function at 0x1007d6ce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
push esi
call dword [eax + 0x294]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x1007d712
mov eax, dword [esi]
push ebx
push dword [ebp + 0x14]
push esi
call dword [eax + 0x294]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1007d71a
push dword [ebp + 8]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x298]
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
push edi
mov edi, dword [sym.imp.MSVCR100.dll__control87]
push ebx
push ebx
call edi
pop ecx
pop ecx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.kernel32.dll_GetLastError]
push 0xffffffffffffffff
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call edi
mov eax, dword [esi]
pop ecx
pop ecx
push dword [ebp + 8]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x298]
push dword [ebp - 4]
mov eax, dword [esi]
push dword [ebp + 0x14]
push esi
call dword [eax + 0x298]
cmp dword [ebp - 0xc], 0x20
pop edi
jg 0x1007d712
push ebx
push ebx
lea eax, [ebp + 0x10]
push eax
push 0x400
push dword [ebp - 0x10]
mov dword [ebp + 0x10], ebx
push ebx
push 0x1300
call dword [sym.imp.kernel32.dll_FormatMessageW]
cmp dword [ebp + 0x10], ebx
je 0x1007d712
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
mov ecx, dword [esi]
push eax
push dword [ebp + 0x10]
push esi
call dword [ecx + 0x28c]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, esi
jmp 0x1007d714

Function at 0x1007da1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [0x100fca84]
mov dword [ebp - 8], 0x63
push SysReAllocString
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1007da57
xor eax, eax
inc eax
leave
ret
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.FontSmoothingOrientation
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1007da52
mov eax, dword [ebp - 8]
leave
ret
Function at 0x1007e695
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1fc
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call dword [sym.imp.kernel32.dll_GetVersion]
cmp al, 6
sbb eax, eax
push 0
and eax, 0xfffffffc
lea ecx, [ebp - 0x184]
add eax, 0x1f8
push ecx
push eax
push 0x29
mov dword [ebp - 0x184], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x16c]
push eax
push str.win.frame.captionFont
mov ecx, esi
call fcn.100130d0
push dword [ebp - 0x170]
mov ecx, esi
push str.win.frame.captionHeight
call fcn.100130d0
push dword [ebp - 0x174]
mov ecx, esi
push str.win.frame.captionButtonWidth
call fcn.100130d0
push dword [ebp - 0x170]
mov ecx, esi
push str.win.frame.captionButtonHeight
call fcn.100130d0
lea eax, [ebp - 0x108]
push eax
push str.win.frame.smallCaptionFont
mov ecx, esi
call fcn.100130d0
push dword [ebp - 0x10c]
mov ecx, esi
push str.win.frame.smallCaptionHeight
call fcn.100130d0
push dword [ebp - 0x110]
mov ecx, esi
push str.win.frame.smallCaptionButtonWidth
call fcn.100130d0
push dword [ebp - 0x10c]
mov ecx, esi
push str.win.frame.smallCaptionButtonHeight
call fcn.100130d0
push dword [ebp - 0x180]
mov ecx, esi
push str.win.frame.sizingBorderWidth
call fcn.100130d0
lea eax, [ebp - 0xa4]
push eax
push str.win.menu.font
mov ecx, esi
call fcn.100130d0
push dword [ebp - 0xa8]
mov ecx, esi
push str.win.menu.height
call fcn.100130d0
push dword [ebp - 0xac]
mov ecx, esi
push str.win.menu.buttonWidth
call fcn.100130d0
push dword [ebp - 0x17c]
mov ecx, esi
push str.win.scrollbar.width
call fcn.100130d0
push dword [ebp - 0x178]
mov ecx, esi
push str.win.scrollbar.height
call fcn.100130d0
lea eax, [ebp - 0x48]
push eax
push str.win.status.font
mov ecx, esi
call fcn.100130d0
lea eax, [ebp - 0x48]
push eax
push str.win.tooltip.font
mov ecx, esi
call fcn.100130d0
lea eax, [ebp + 0x14]
push eax
push str.win.messagebox.font
mov ecx, esi
call fcn.100130d0
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.100b4c22
add ebp, 0x78
leave
ret
Function at 0x1007e88e
Capabilities:
Check os version

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push edi
push 0x1b
mov edi, ecx
call esi
push eax
push str.win.frame.activeCaptionGradientColor
mov ecx, edi
call fcn.100130d0
push 0x1c
call esi
push eax
push str.win.frame.inactiveCaptionGradientColor
mov ecx, edi
call fcn.100130d0
push 0x1a
call esi
push eax
push str.win.item.hotTrackedColor
mov ecx, edi
call fcn.100130d0
push 0x15
call esi
push eax
push str.win.3d.darkShadowColor
mov ecx, edi
call fcn.100130d0
push 0xf
call esi
push eax
push str.win.3d.backgroundColor
mov ecx, edi
call fcn.100130d0
push 0x14
call esi
push eax
push str.win.3d.highlightColor
mov ecx, edi
call fcn.100130d0
push 0x16
call esi
push eax
push str.win.3d.lightColor
mov ecx, edi
call fcn.100130d0
push 0x10
call esi
push eax
push str.win.3d.shadowColor
mov ecx, edi
call fcn.100130d0
push 0x12
call esi
push eax
push str.win.button.textColor
mov ecx, edi
call fcn.100130d0
push 1
call esi
push eax
push str.win.desktop.backgroundColor
mov ecx, edi
call fcn.100130d0
push 2
call esi
push eax
push str.win.frame.activeCaptionColor
mov ecx, edi
call fcn.100130d0
push 0xa
call esi
push eax
push str.win.frame.activeBorderColor
mov ecx, edi
call fcn.100130d0
push 6
call esi
push eax
push str.win.frame.color
mov ecx, edi
call fcn.100130d0
push 5
call esi
push eax
push str.win.frame.backgroundColor
mov ecx, edi
call fcn.100130d0
push 9
call esi
push eax
push str.win.frame.captionTextColor
mov ecx, edi
call fcn.100130d0
push 0xb
call esi
push eax
push str.win.frame.inactiveBorderColor
mov ecx, edi
call fcn.100130d0
push 3
call esi
push eax
push str.win.frame.inactiveCaptionColor
mov ecx, edi
call fcn.100130d0
push 0x13
call esi
push eax
push str.win.frame.inactiveCaptionTextColor
mov ecx, edi
call fcn.100130d0
push 8
call esi
push eax
push str.win.frame.textColor
mov ecx, edi
call fcn.100130d0
push 0xd
call esi
push eax
push str.win.item.highlightColor
mov ecx, edi
call fcn.100130d0
push 0xe
call esi
push eax
push str.win.item.highlightTextColor
mov ecx, edi
call fcn.100130d0
push 0xc
call esi
push eax
push str.win.mdi.backgroundColor
mov ecx, edi
call fcn.100130d0
push 4
call esi
push eax
push str.win.menu.backgroundColor
mov ecx, edi
call fcn.100130d0
push 7
call esi
push eax
push str.win.menu.textColor
mov ecx, edi
call fcn.100130d0
mov ebx, dword [sym.imp.kernel32.dll_GetVersion]
call ebx
cmp al, 5
jb 0x1007ea46
call ebx
shr eax, 8
cmp al, 1
jae 0x1007ea50
call ebx
cmp al, 5
ja 0x1007ea50
push 4
jmp 0x1007ea52
push 0x1e
pop eax
push eax
call esi
push eax
push str.win.menubar.backgroundColor
mov ecx, edi
call fcn.100130d0
push 0
call esi
push eax
push str.win.scrollbar.backgroundColor
mov ecx, edi
call fcn.100130d0
push 0x11
call esi
push eax
push str.win.text.grayedTextColor
mov ecx, edi
call fcn.100130d0
push 0x18
call esi
push eax
push str.win.tooltip.backgroundColor
mov ecx, edi
call fcn.100130d0
push 0x17
call esi
push eax
push str.win.tooltip.textColor
mov ecx, edi
call fcn.100130d0
pop edi
pop esi
pop ebx
ret
Function at 0x10081b1a
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x2c
mov eax, 0x100b6f49
call fcn.100b4ddd
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
call fcn.100b022b
call fcn.100130d0
push 0x10002
push dword [0x101004d4]
call sub.java.dll__JNU_GetEnv_8
push dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
call fcn.10083a9c
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
pop ecx
push 1
mov dword [esi - 0x44], eax
call edi
mov ebx, 0xff00
test bx, ax
jne 0x100816fe
push 4
call edi
test bx, ax
jne 0x100816fe
push 2
call edi
push 0x10
call edi
push 0x11
call edi
push 0x12
call edi
call fcn.10074533
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_WindowFromPoint]
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [esi - 0x4c], eax
sete cl
mov dword [ebp - 0x38], ecx
cmp ecx, edi
je 0x10081760
cmp dword [esi - 0x48], edi
jne 0x10081754
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [esi - 0x58]
push dword [ebp - 0x30]
call fcn.100807c9
add esp, 0x10
mov dword [esi - 0x4c], edi
mov dword [esi - 0x48], 1
jmp 0x1008178b
cmp eax, edi
je 0x1008178b
mov eax, 0x1008062e
cmp dword [esi - 0x48], edi
jne 0x10081773
mov eax, 0x100806b7
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ebx
push dword [esi - 0x44]
push dword [esi - 0x58]
push dword [ebp - 0x30]
call eax
add esp, 0x18
mov dword [esi - 0x48], edi
mov eax, dword [esi - 0x4c]
cmp eax, edi
je 0x100817e9
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
push eax
push dword [esi - 0x4c]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100817db
mov eax, dword [ebp - 0x34]
mov dword [esi - 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esi - 0x10], edi
mov dword [esi - 0x14], eax
jmp 0x100817f6
mov eax, dword [ebp - 0x2c]
mov dword [esi - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [esi - 0x14], eax
jmp 0x100817ef
mov dword [esi - 0x18], edi
mov dword [esi - 0x14], edi
mov dword [esi - 0x10], 1
mov eax, dword [ebp - 0x38]
lea ecx, [esi - 0x60]
mov dword [esi - 0xc], eax
call fcn.100803a7
jmp 0x10081820
call fcn.100b4e39
ret 8
mov ecx, dword [esp + 4]
sub ecx, dword [ecx - 4]
mov dword [esp + 4], ecx
jmp 0x100816a1
Function at 0x10087a52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
add eax, dword [ebp + 8]
push 0
push 0
push eax
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_ReadFile]
pop esi
pop ebp
ret 0xc

Function at 0x10087c7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x74], eax
cmp dword [0x100fcd68], ebx
je 0x10087dfd
call fcn.100130d0
cmp eax, ebx
jne 0x10087cc6
mov dword [0x100fcd68], ebx
jmp 0x10087dfd
lea ecx, [ebp - 0x7c]
push ecx
push 0xf003f
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10087cbb
push edi
push dword [esi + 4]
mov edi, dword [sym.imp.MSVCR100.dll_wcscpy]
lea eax, [ebp - 0x70]
push eax
call edi
lea eax, [ebp - 0x70]
push 0x2c
push eax
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 0x10
cmp eax, ebx
je 0x10087d08
xor ecx, ecx
mov word [eax], cx
mov esi, 0x104
push esi
lea eax, [ebp + 0x30]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push ebx
push 0x50
lea eax, [ebp + 0x134]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
mov dword [ebp - 0x78], esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp + 0x134]
push eax
push dword [ebp - 0x7c]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10087db5
cmp dword [0x100fcd6c], ebx
je 0x10087dfc
mov esi, 0x100fffe8
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
test eax, eax
je 0x10087d7f
push esi
push dword [ebp - 0x74]
call edi
jmp 0x10087dfa
push 5
pop ecx
mov esi, 0x100d4964
lea edi, [ebp + 0x184]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp + 0x184]
movsw word es:[edi], word [esi]
push eax
push dword [ebp - 0x7c]
xor esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10087dc9
lea eax, [ebp + 0x30]
push str.userfont.fon
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x10087dd1
mov dword [0x100fcd6c], ebx
jmp 0x10087dfc
push dword [ebp + 0x1ac]
lea eax, [ebp + 0x30]
push dword [ebp - 0x74]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp esi, ebx
je 0x10087dfc
push dword [ebp - 0x74]
push 0x100fffe8
call dword [sym.imp.MSVCR100.dll_wcscpy]
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp + 0x19c]
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4c22
add ebp, 0x1a0
leave
ret 8
Function at 0x100883c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.10087947
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x10088489
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x28]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
call edi
movzx ecx, byte [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edx, 0x100
imul cx, dx
shr eax, 8
movzx eax, al
add ax, cx
xor ecx, ecx
mov word [ebp - 0xc], ax
mov dword [ebp - 0x24], ebx
cmp cx, ax
jae 0x10088466
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x18]
call edi
cmp dword [ebp - 0x20], 0x70616d63
je 0x10088466
movzx eax, word [ebp - 0xc]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], eax
jl 0x10088441
lea eax, [ebp - 0x18]
push eax
call fcn.100879d4
mov eax, dword [ebp - 0x18]
pop ecx
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.10088071
push dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x18], ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4c22
leave
ret 4

Function at 0x1008c620
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push str.IMLIB_DEBUG
call esi
add esp, 4
mov ebx, 1
test eax, eax
je 0x1008c662
call sym.awt.dll_awt_setMlibStartTimer
mov dword [0x10100298], eax
call sym.awt.dll_awt_setMlibStartTimer
cmp dword [0x10100298], 0
mov dword [0x1010029c], eax
je 0x1008c662
test eax, eax
je 0x1008c662
mov dword [0x10100288], ebx
push str.IMLIB_PRINT
call esi
add esp, 4
test eax, eax
je 0x1008c676
mov dword [0x1010028c], ebx
push str.IMLIB_START
call esi
add esp, 4
test eax, eax
je 0x1008c698
push 0x10100290
push 0x100cf05c
push eax
call dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0xc
push str.IMLIB_NOMLIB
call esi
add esp, 4
test eax, eax
je 0x1008c6b3
pop esi
mov dword [0x10100294], ebx
xor al, al
pop ebx
ret 8
mov eax, dword [esp + 0xc]
push 0x1010027c
push 0x100fce2c
push eax
call fcn.100130d0
add esp, 0xc
test eax, eax
jne 0x1008c6a6
pop esi
mov al, bl
pop ebx
ret 8
Function at 0x1008f650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ecx
xor ecx, ecx
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
push edi
mov dword [esp + 0x10], ecx
cmp ebp, ecx
jge 0x1008f66f
xor ebp, ebp
jmp 0x1008f67c
cmp ebp, 0xff
jle 0x1008f680
mov ebp, 0xff
mov dword [esp + 0x18], ebp
cmp ebx, ecx
jge 0x1008f688
xor ebx, ebx
jmp 0x1008f695
cmp ebx, 0xff
jle 0x1008f695
mov ebx, 0xff
cmp eax, ecx
jge 0x1008f69d
xor eax, eax
jmp 0x1008f6a9
cmp eax, 0xff
jle 0x1008f6ad
mov eax, 0xff
mov dword [esp + 0x1c], eax
cmp ebp, ebx
jne 0x1008f70e
cmp ebx, eax
jne 0x1008f70e
mov ebx, dword [esp + 0x20]
mov edi, 0x100
cmp ebx, ecx
jle 0x1008f764
add esi, 2
lea esp, [esp]
mov al, byte [esi - 1]
mov dl, byte [esi]
cmp al, dl
jne 0x1008f6f4
cmp dl, byte [esi + 1]
jne 0x1008f6f4
movzx eax, al
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
je 0x1008f706
cmp eax, edi
jge 0x1008f6f4
mov dword [esp + 0x10], ecx
mov edi, eax
inc ecx
add esi, 4
cmp ecx, ebx
jl 0x1008f6d0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
pop ecx
ret
xor eax, eax
mov edi, 0x1000000
cmp dword [esp + 0x20], ecx
jle 0x1008f764
add esi, 2
mov edi, edi
movzx ecx, byte [esi - 1]
sub ecx, ebp
imul ecx, ecx
cmp ecx, edi
jge 0x1008f75a
movzx edx, byte [esi]
sub edx, ebx
imul edx, edx
add ecx, edx
cmp ecx, edi
jge 0x1008f756
movzx edx, byte [esi + 1]
sub edx, dword [esp + 0x1c]
imul edx, edx
add ecx, edx
cmp ecx, edi
jge 0x1008f756
test ecx, ecx
je 0x1008f768
mov dword [esp + 0x10], eax
mov edi, ecx
mov ebp, dword [esp + 0x18]
inc eax
add esi, 4
cmp eax, dword [esp + 0x20]
jl 0x1008f720
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret