joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018500
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100fd640]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp word [0x100fddb8], 0
push ebx
jne 0x10018722
push esi
push 0x11c
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
push str._I__OS_Version_
push 0
push 3
mov esi, eax
call fcn.10045e50
add esp, 0xc
test esi, esi
pop esi
je 0x10018706
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
cmp eax, 2
jne 0x100186f1
cmp ecx, 4
jbe 0x100186f1
mov eax, dword [esp + 0xc]
mov ebx, 1
cmp ecx, 6
jb 0x10018628
test eax, eax
jne 0x100185de
cmp byte [esp + 0x11e], bl
jne 0x100185bc
push str.OS_VISTA_n
push eax
push 3
call fcn.10045e50
add esp, 0xc
mov word [0x100fddb8], bx
jmp 0x10018722
push str.OS_WINSERV_2008_n
push 0
push 3
call fcn.10045e50
mov edx, 2
add esp, 0xc
mov word [0x100fddb8], dx
jmp 0x10018722
cmp eax, ebx
jb 0x10018628
cmp byte [esp + 0x11e], bl
jne 0x10018606
push str.OS_WINDOWS7_or_newer_n
push 0
push 3
call fcn.10045e50
add esp, 0xc
mov eax, 0x20
jmp 0x1001871c
push str.OS_WINSERV_2008R2_or_newer_n
push 0
push 3
call fcn.10045e50
mov ecx, 0x40
add esp, 0xc
mov word [0x100fddb8], cx
jmp 0x10018722
cmp ecx, 5
jne 0x100186d0
cmp eax, 2
jne 0x1001867c
cmp byte [esp + 0x11e], bl
jne 0x10018661
push str.OS_WINXP_64_n
push 0
push 3
call fcn.10045e50
mov edx, 8
add esp, 0xc
mov word [0x100fddb8], dx
jmp 0x10018722
push str.OS_WINSERV_2003_n
push 0
push 3
call fcn.10045e50
add esp, 0xc
mov eax, 0x10
jmp 0x1001871c
cmp eax, ebx
jne 0x100186d0
push str.OS_WINXP
push 0
push 3
call fcn.10045e50
add esp, 0xc
test dword [esp + 0x11c], 0x200
mov ecx, 4
mov word [0x100fddb8], cx
je 0x100186bd
push str.Home_n
push 0
push 3
call fcn.10045e50
add esp, 0xc
jmp 0x10018722
push str.Pro_n
push 0
push 3
call fcn.10045e50
add esp, 0xc
jmp 0x10018722
push eax
push ecx
push str.OS_UNKNOWN:_dwMajorVersion_d_dwMinorVersion_d_n
push 0
push 3
call fcn.10045e50
mov edx, 0xff80
add esp, 0x14
mov word [0x100fddb8], dx
jmp 0x10018722
push ecx
push eax
push str.OS_UNKNOWN:_dwPlatformId_d_dwMajorVersion_d_n
push 0
push 3
call fcn.10045e50
add esp, 0x14
jmp 0x10018717
push str.OS_UNKNOWN:_GetVersionEx_failed_n
push 0
push 3
call fcn.10045e50
add esp, 0xc
mov eax, 0xff80
mov word [0x100fddb8], ax
movzx ecx, word [esp + 0x128]
movzx eax, word [0x100fddb8]
and eax, ecx
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
call fcn.100b4c22
add esp, 0x120
ret
Function at 0x10018890
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push str.J2D_D3D_RASTERIZER
call dword [sym.imp.MSVCR100.dll_getenv]
mov esi, eax
add esp, 4
mov ebx, 1
test esi, esi
je 0x10018979
push edi
push str._W__D3DPPLM::SelectDeviceType:
push 0
push 2
call fcn.10045e50
mov edi, dword [sym.imp.MSVCR100.dll_strncmp]
push 3
push 0x100ca9ec
push esi
call edi
add esp, 0x18
test eax, eax
je 0x10018951
push 3
push 0x100ba4a4
push esi
call edi
add esp, 0xc
test eax, eax
je 0x10018951
push 3
push 0x100ca9e8
push esi
call edi
add esp, 0xc
test eax, eax
je 0x10018941
push 3
push 0x100ca9e4
push esi
call edi
add esp, 0xc
test eax, eax
je 0x10018941
push 3
push 0x100ca9e0
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x1001892d
push str.nullref_rasterizer_selected
push eax
push 2
call fcn.10045e50
mov ebx, 4
jmp 0x10018964
push esi
push str.unknown_rasterizer:__s__only__refhalnul__supported__hal_selected_instead
push 0
push 2
call fcn.10045e50
add esp, 0x10
jmp 0x10018967
push str.hal_rasterizer_selected
push 0
push 2
call fcn.10045e50
jmp 0x10018964
push str.ref_rasterizer_selected
push 0
push 2
call fcn.10045e50
mov ebx, 2
add esp, 0xc
push 0x100c9da4
push 0
push 2
call fcn.10045e50
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x10019290
Capabilities:
Check os version

Disassembly:
push esi
mov esi, dword [sym.imp.kernel32.dll_GetVersion]
call esi
cmp al, 5
ja 0x100192ac
call esi
cmp al, 5
jne 0x100192ba
call esi
shr eax, 8
cmp al, 1
jb 0x100192ba
push 0x52
call fcn.10018500
add esp, 4
test eax, eax
je 0x100192e5
push str.D3DPPLM::CheckOSVersion:_Windows_2000_or_earlier__or_a_server__OS_detected__failed
push 1
push 1
call fcn.10045e50
add esp, 0xc
cmp dword [0x100fddb4], 0
je 0x100192e9
push str.__OS_check_overridden_via_J2D_D3D_NO_HWCHECK
push 1
push 2
call fcn.10045e50
add esp, 0xc
xor eax, eax
pop esi
ret
mov eax, 0x80004005
pop esi
ret
Function at 0x1004b3b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push str.OGLFuncs_InitPlatformFuncs
inc ebx
push ebx
push 3
call fcn.10045e50
mov eax, dword [0x100fdf58]
add esp, 0xc
test eax, eax
jne 0x1004b3e7
push str.OGLFuncs_InitPlatformFuncs:_library_not_yet_initialized
push ebx
push ebx
call fcn.10045e50
add esp, 0xc
xor al, al
pop ebx
ret
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push edi
mov edi, str.wglCreateContext
push edi
push eax
call esi
mov dword [0x10100fe4], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglDeleteContext
push edi
push dword [0x100fdf58]
call esi
mov dword [0x10100f84], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglMakeCurrent
push edi
push dword [0x100fdf58]
call esi
mov dword [0x101010b8], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglGetCurrentContext
push edi
push dword [0x100fdf58]
call esi
mov dword [0x101010e0], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglGetCurrentDC
push edi
push dword [0x100fdf58]
call esi
mov dword [0x101010dc], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglGetProcAddress
push edi
push dword [0x100fdf58]
call esi
mov dword [0x101010f4], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglShareLists
push edi
push dword [0x100fdf58]
call esi
mov dword [0x10100f68], eax
test eax, eax
jne 0x1004b49e
push edi
push ebx
push ebx
call fcn.10045e50
add esp, 0xc
xor al, al
jmp 0x1004b4a0
mov al, bl
pop edi
pop esi
pop ebx
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.10045e50
push dword [ebp - 0x170]
mov ecx, esi
push str.win.frame.captionHeight
call fcn.10045e50
push dword [ebp - 0x174]
mov ecx, esi
push str.win.frame.captionButtonWidth
call fcn.10045e50
push dword [ebp - 0x170]
mov ecx, esi
push str.win.frame.captionButtonHeight
call fcn.10045e50
lea eax, [ebp - 0x108]
push eax
push str.win.frame.smallCaptionFont
mov ecx, esi
call fcn.10045e50
push dword [ebp - 0x10c]
mov ecx, esi
push str.win.frame.smallCaptionHeight
call fcn.10045e50
push dword [ebp - 0x110]
mov ecx, esi
push str.win.frame.smallCaptionButtonWidth
call fcn.10045e50
push dword [ebp - 0x10c]
mov ecx, esi
push str.win.frame.smallCaptionButtonHeight
call fcn.10045e50
push dword [ebp - 0x180]
mov ecx, esi
push str.win.frame.sizingBorderWidth
call fcn.10045e50
lea eax, [ebp - 0xa4]
push eax
push str.win.menu.font
mov ecx, esi
call fcn.10045e50
push dword [ebp - 0xa8]
mov ecx, esi
push str.win.menu.height
call fcn.10045e50
push dword [ebp - 0xac]
mov ecx, esi
push str.win.menu.buttonWidth
call fcn.10045e50
push dword [ebp - 0x17c]
mov ecx, esi
push str.win.scrollbar.width
call fcn.10045e50
push dword [ebp - 0x178]
mov ecx, esi
push str.win.scrollbar.height
call fcn.10045e50
lea eax, [ebp - 0x48]
push eax
push str.win.status.font
mov ecx, esi
call fcn.10045e50
lea eax, [ebp - 0x48]
push eax
push str.win.tooltip.font
mov ecx, esi
call fcn.10045e50
lea eax, [ebp + 0x14]
push eax
push str.win.messagebox.font
mov ecx, esi
call fcn.10045e50
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.10045e50
push 0x1c
call esi
push eax
push str.win.frame.inactiveCaptionGradientColor
mov ecx, edi
call fcn.10045e50
push 0x1a
call esi
push eax
push str.win.item.hotTrackedColor
mov ecx, edi
call fcn.10045e50
push 0x15
call esi
push eax
push str.win.3d.darkShadowColor
mov ecx, edi
call fcn.10045e50
push 0xf
call esi
push eax
push str.win.3d.backgroundColor
mov ecx, edi
call fcn.10045e50
push 0x14
call esi
push eax
push str.win.3d.highlightColor
mov ecx, edi
call fcn.10045e50
push 0x16
call esi
push eax
push str.win.3d.lightColor
mov ecx, edi
call fcn.10045e50
push 0x10
call esi
push eax
push str.win.3d.shadowColor
mov ecx, edi
call fcn.10045e50
push 0x12
call esi
push eax
push str.win.button.textColor
mov ecx, edi
call fcn.10045e50
push 1
call esi
push eax
push str.win.desktop.backgroundColor
mov ecx, edi
call fcn.10045e50
push 2
call esi
push eax
push str.win.frame.activeCaptionColor
mov ecx, edi
call fcn.10045e50
push 0xa
call esi
push eax
push str.win.frame.activeBorderColor
mov ecx, edi
call fcn.10045e50
push 6
call esi
push eax
push str.win.frame.color
mov ecx, edi
call fcn.10045e50
push 5
call esi
push eax
push str.win.frame.backgroundColor
mov ecx, edi
call fcn.10045e50
push 9
call esi
push eax
push str.win.frame.captionTextColor
mov ecx, edi
call fcn.10045e50
push 0xb
call esi
push eax
push str.win.frame.inactiveBorderColor
mov ecx, edi
call fcn.10045e50
push 3
call esi
push eax
push str.win.frame.inactiveCaptionColor
mov ecx, edi
call fcn.10045e50
push 0x13
call esi
push eax
push str.win.frame.inactiveCaptionTextColor
mov ecx, edi
call fcn.10045e50
push 8
call esi
push eax
push str.win.frame.textColor
mov ecx, edi
call fcn.10045e50
push 0xd
call esi
push eax
push str.win.item.highlightColor
mov ecx, edi
call fcn.10045e50
push 0xe
call esi
push eax
push str.win.item.highlightTextColor
mov ecx, edi
call fcn.10045e50
push 0xc
call esi
push eax
push str.win.mdi.backgroundColor
mov ecx, edi
call fcn.10045e50
push 4
call esi
push eax
push str.win.menu.backgroundColor
mov ecx, edi
call fcn.10045e50
push 7
call esi
push eax
push str.win.menu.textColor
mov ecx, edi
call fcn.10045e50
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.10045e50
push 0
call esi
push eax
push str.win.scrollbar.backgroundColor
mov ecx, edi
call fcn.10045e50
push 0x11
call esi
push eax
push str.win.text.grayedTextColor
mov ecx, edi
call fcn.10045e50
push 0x18
call esi
push eax
push str.win.tooltip.backgroundColor
mov ecx, edi
call fcn.10045e50
push 0x17
call esi
push eax
push str.win.tooltip.textColor
mov ecx, edi
call fcn.10045e50
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.10045e50
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.10045e50
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.10045e50
add esp, 0xc
test eax, eax
jne 0x1008c6a6
pop esi
mov al, bl
pop ebx
ret 8
Function at 0x10093269
Capabilities:
Get keyboard layout

Disassembly:
push 0x14
mov eax, 0x100b7a16
call fcn.100b4d71
and dword [ebp - 4], 0
call fcn.100b022b
call fcn.10045e50
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [ebp - 0x13]
push ecx
push dword [ebp + 0x10]
push edi
call dword [eax + 0x2a4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x10093337
movzx eax, word [0x100ffb2c]
push eax
call sub.java.dll_getJavaIDFromLangID
mov esi, eax
pop ecx
test esi, esi
je 0x100932e5
push ebx
push esi
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x100932dd
mov eax, dword [edi]
push ebx
push dword [ebp + 0x10]
push edi
call dword [eax + 0x2a8]
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov al, 1
jmp 0x10093339
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call ebx
mov edi, eax
inc edi
js 0x100933e8
cmp edi, 0xffffffff
ja 0x100933e8
test edi, edi
je 0x10093313
cmp edi, 0x3fffffff
ja 0x100933e8
mov eax, edi
shl eax, 2
push eax
call fcn.10045e50
mov esi, eax
pop ecx
test esi, esi
jne 0x10093341
push dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2a8]
xor al, al
call fcn.100b4e16
ret 0x10
lea eax, [esi + 4]
push eax
lea eax, [edi - 1]
push eax
call ebx
call fcn.10045e50
and dword [ebp - 0x18], 0
mov dword [esi], eax
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x18]
cmp eax, edi
jge 0x100933b4
lea ebx, [esi + eax*4]
movzx eax, word [ebx]
push eax
call sub.java.dll_getJavaIDFromLangID
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100933e0
push dword [ebp - 0x1c]
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x100933d6
push dword [ebx]
movzx eax, byte [ebp + 0x14]
push eax
push 0x9823
mov ecx, 0x101004d8
call fcn.10019d20
test eax, eax
je 0x100933aa
push dword [ebx]
call fcn.100a4130
pop ecx
mov byte [ebp - 0x11], 1
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
push dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2a8]
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov al, byte [ebp - 0x11]
pop ecx
jmp 0x10093339
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
inc dword [ebp - 0x18]
jmp 0x1009335a
xor eax, eax
lea edi, [ebp + 0x17]
stosb byte es:[edi], al
mov al, byte [ebp + 0x17]
mov byte [ebp - 0x12], al
push 0x100da640
lea eax, [ebp - 0x12]
push eax
call sub.MSVCR100.dll__CxxThrowException
call fcn.100b024a
mov eax, 0x1009340d
ret